mirror of
https://github.com/bknd-io/bknd/
synced 2026-08-02 08:06:00 +00:00
updated references
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import { describe, expect, test } from "bun:test";
|
||||
import { registries } from "../../src";
|
||||
import { createApp } from "core/test/utils";
|
||||
import * as proto from "../../src/data/prototype";
|
||||
import { StorageLocalAdapter } from "adapter/node/storage/StorageLocalAdapter";
|
||||
@@ -14,8 +13,8 @@ describe("repros", async () => {
|
||||
* There was an issue that AppData had old configs because of system entity "media"
|
||||
*/
|
||||
test("registers media entity correctly to relate to it", async () => {
|
||||
registries.media.register("local", StorageLocalAdapter);
|
||||
const app = createApp();
|
||||
app.module.media.adapters.set("local", StorageLocalAdapter);
|
||||
await app.build();
|
||||
|
||||
{
|
||||
|
||||
@@ -1,17 +1,12 @@
|
||||
/// <reference types="@types/bun" />
|
||||
|
||||
import { afterAll, beforeAll, describe, expect, test } from "bun:test";
|
||||
import { registries } from "../../src";
|
||||
import { createApp } from "core/test/utils";
|
||||
import { mergeObject, randomString } from "../../src/core/utils";
|
||||
import type { TAppMediaConfig } from "../../src/media/media-schema";
|
||||
import { StorageLocalAdapter } from "adapter/node/storage/StorageLocalAdapter";
|
||||
import { assetsPath, assetsTmpPath, disableConsoleLog, enableConsoleLog } from "../helper";
|
||||
|
||||
beforeAll(() => {
|
||||
registries.media.register("local", StorageLocalAdapter);
|
||||
});
|
||||
|
||||
const path = `${assetsPath}/image.png`;
|
||||
|
||||
async function makeApp(mediaOverride: Partial<TAppMediaConfig> = {}) {
|
||||
@@ -32,6 +27,8 @@ async function makeApp(mediaOverride: Partial<TAppMediaConfig> = {}) {
|
||||
},
|
||||
});
|
||||
|
||||
app.module.media.adapters.set("local", StorageLocalAdapter);
|
||||
|
||||
await app.build();
|
||||
return app;
|
||||
}
|
||||
|
||||
@@ -30,6 +30,7 @@ export type AppPluginConfig = {
|
||||
onServerInit?: (server: Hono<ServerEnv>) => MaybePromise<void>;
|
||||
onFirstBoot?: () => MaybePromise<void>;
|
||||
onBoot?: () => MaybePromise<void>;
|
||||
onModulesCreated?: (modules: Modules) => void;
|
||||
};
|
||||
export type AppPlugin = (app: App) => AppPluginConfig;
|
||||
|
||||
@@ -113,6 +114,7 @@ export class App<C extends Connection = Connection, Options extends AppOptions =
|
||||
onFirstBoot: this.onFirstBoot.bind(this),
|
||||
onServerInit: this.onServerInit.bind(this),
|
||||
onModulesBuilt: this.onModulesBuilt.bind(this),
|
||||
onModulesCreated: this.onModulesCreated.bind(this),
|
||||
});
|
||||
this.modules.ctx().emgr.registerEvents(AppEvents);
|
||||
}
|
||||
@@ -325,6 +327,11 @@ export class App<C extends Connection = Connection, Options extends AppOptions =
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected async onModulesCreated(modules: Modules, ctx: ModuleBuildContext) {
|
||||
await this.runPlugins("onModulesCreated", modules, ctx);
|
||||
this.options?.manager?.onModulesCreated?.(modules, ctx);
|
||||
}
|
||||
}
|
||||
|
||||
export function createApp(config: CreateAppConfig = {}) {
|
||||
|
||||
@@ -17,9 +17,8 @@ export async function createApp<Env = BunEnv>(
|
||||
opts?: RuntimeOptions,
|
||||
) {
|
||||
const root = path.resolve(distPath ?? "./node_modules/bknd/dist", "static");
|
||||
registerLocalMediaAdapter();
|
||||
|
||||
return await createRuntimeApp(
|
||||
const app = await createRuntimeApp(
|
||||
{
|
||||
...config,
|
||||
serveStatic: serveStatic({ root }),
|
||||
@@ -27,6 +26,8 @@ export async function createApp<Env = BunEnv>(
|
||||
args ?? (process.env as Env),
|
||||
opts,
|
||||
);
|
||||
registerLocalMediaAdapter(app);
|
||||
return app;
|
||||
}
|
||||
|
||||
export function createHandler<Env = BunEnv>(
|
||||
|
||||
@@ -8,6 +8,7 @@ import { getCached } from "./modes/cached";
|
||||
import { getDurable } from "./modes/durable";
|
||||
import type { App } from "bknd";
|
||||
import { $console } from "core/utils";
|
||||
import { registerMedia } from "./storage/StorageR2Adapter";
|
||||
|
||||
declare global {
|
||||
namespace Cloudflare {
|
||||
@@ -33,7 +34,7 @@ export type CloudflareBkndConfig<Env = CloudflareEnv> = RuntimeBkndConfig<Env> &
|
||||
keepAliveSeconds?: number;
|
||||
forceHttps?: boolean;
|
||||
manifest?: string;
|
||||
registerMedia?: boolean | ((env: Env) => void);
|
||||
registerMedia?: boolean;
|
||||
};
|
||||
|
||||
export type Context<Env = CloudflareEnv> = {
|
||||
@@ -99,7 +100,16 @@ export function serve<Env extends CloudflareEnv = CloudflareEnv>(
|
||||
throw new Error(`Unknown mode ${mode}`);
|
||||
}
|
||||
|
||||
registerMediaInternal(app, config, context);
|
||||
return app.fetch(request, env, ctx);
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
let media_registered: boolean = false;
|
||||
function registerMediaInternal(app: App, config: CloudflareBkndConfig<any>, ctx?: Context) {
|
||||
if (!media_registered && config.registerMedia !== false) {
|
||||
registerMedia(app, ctx?.env as any);
|
||||
media_registered = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
/// <reference types="@cloudflare/workers-types" />
|
||||
|
||||
import { registerMedia } from "./storage/StorageR2Adapter";
|
||||
import { getBinding } from "./bindings";
|
||||
import { d1Sqlite } from "./connection/D1Connection";
|
||||
import { Connection } from "bknd/data";
|
||||
@@ -88,20 +87,10 @@ export function d1SessionHelper(config: CloudflareBkndConfig<any>) {
|
||||
};
|
||||
}
|
||||
|
||||
let media_registered: boolean = false;
|
||||
export function makeConfig<Env extends CloudflareEnv = CloudflareEnv>(
|
||||
config: CloudflareBkndConfig<Env>,
|
||||
args?: CfMakeConfigArgs<Env>,
|
||||
) {
|
||||
if (!media_registered && config.registerMedia !== false) {
|
||||
if (typeof config.registerMedia === "function") {
|
||||
config.registerMedia(args?.env as any);
|
||||
} else {
|
||||
registerMedia(args?.env as any);
|
||||
}
|
||||
media_registered = true;
|
||||
}
|
||||
|
||||
const appConfig = makeAdapterConfig(config, args?.env);
|
||||
|
||||
// if connection instance is given, don't do anything
|
||||
|
||||
@@ -14,7 +14,6 @@ export {
|
||||
} from "./bindings";
|
||||
export { constants } from "./config";
|
||||
export { StorageR2Adapter } from "./storage/StorageR2Adapter";
|
||||
export { registries } from "bknd";
|
||||
|
||||
// for compatibility with old code
|
||||
export function d1<DB extends D1Database | D1DatabaseSession = D1Database>(
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { registries } from "bknd";
|
||||
import type { App } from "bknd";
|
||||
import { isDebug } from "bknd/core";
|
||||
import { guessMimeType as guess, StorageAdapter, type FileBody } from "bknd/media";
|
||||
import { getBindings } from "../bindings";
|
||||
@@ -13,10 +13,10 @@ export function makeSchema(bindings: string[] = []) {
|
||||
);
|
||||
}
|
||||
|
||||
export function registerMedia(env: Record<string, any>) {
|
||||
export function registerMedia(app: App, env: Record<string, any>) {
|
||||
const r2_bindings = getBindings(env, "R2Bucket");
|
||||
|
||||
registries.media.register(
|
||||
app.module.media.adapters.set(
|
||||
"r2",
|
||||
class extends StorageR2Adapter {
|
||||
constructor(private config: any) {
|
||||
|
||||
@@ -4,13 +4,14 @@ import { $console } from "bknd/utils";
|
||||
import type { MiddlewareHandler } from "hono";
|
||||
import type { AdminControllerOptions } from "modules/server/AdminController";
|
||||
import { Connection } from "bknd/data";
|
||||
import type { MaybePromise } from "core/types";
|
||||
|
||||
export { Connection } from "bknd/data";
|
||||
|
||||
export type BkndConfig<Args = any> = CreateAppConfig & {
|
||||
app?: CreateAppConfig | ((args: Args) => CreateAppConfig);
|
||||
onBuilt?: (app: App) => Promise<void>;
|
||||
beforeBuild?: (app: App) => Promise<void>;
|
||||
onBuilt?: (app: App) => MaybePromise<void>;
|
||||
beforeBuild?: (app: App) => MaybePromise<void>;
|
||||
buildConfig?: Parameters<App["build"]>[0];
|
||||
};
|
||||
|
||||
|
||||
@@ -29,8 +29,7 @@ export async function createApp<Env = NodeEnv>(
|
||||
console.warn("relativeDistPath is deprecated, please use distPath instead");
|
||||
}
|
||||
|
||||
registerLocalMediaAdapter();
|
||||
return await createRuntimeApp(
|
||||
const app = await createRuntimeApp(
|
||||
{
|
||||
...config,
|
||||
serveStatic: serveStatic({ root }),
|
||||
@@ -39,6 +38,8 @@ export async function createApp<Env = NodeEnv>(
|
||||
args ?? { env: process.env },
|
||||
opts,
|
||||
);
|
||||
registerLocalMediaAdapter(app);
|
||||
return app;
|
||||
}
|
||||
|
||||
export function createHandler<Env = NodeEnv>(
|
||||
|
||||
@@ -1,14 +1,10 @@
|
||||
import { registries } from "bknd";
|
||||
import type { App } from "bknd";
|
||||
import { type LocalAdapterConfig, StorageLocalAdapter } from "./StorageLocalAdapter";
|
||||
|
||||
export * from "./StorageLocalAdapter";
|
||||
|
||||
let registered = false;
|
||||
export function registerLocalMediaAdapter() {
|
||||
if (!registered) {
|
||||
registries.media.register("local", StorageLocalAdapter);
|
||||
registered = true;
|
||||
}
|
||||
export function registerLocalMediaAdapter(app: App) {
|
||||
app.module.media.adapters.set("local", StorageLocalAdapter);
|
||||
|
||||
return (config: Partial<LocalAdapterConfig> = {}) => {
|
||||
const adapter = new StorageLocalAdapter(config);
|
||||
|
||||
@@ -32,8 +32,7 @@ async function createApp<ViteEnv>(
|
||||
env: ViteEnv = {} as ViteEnv,
|
||||
opts: FrameworkOptions = {},
|
||||
): Promise<App> {
|
||||
registerLocalMediaAdapter();
|
||||
return await createRuntimeApp(
|
||||
const app = await createRuntimeApp(
|
||||
{
|
||||
...config,
|
||||
adminOptions: config.adminOptions ?? {
|
||||
@@ -49,6 +48,8 @@ async function createApp<ViteEnv>(
|
||||
env,
|
||||
opts,
|
||||
);
|
||||
registerLocalMediaAdapter(app);
|
||||
return app;
|
||||
}
|
||||
|
||||
export function serve<ViteEnv>(
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { Config } from "@libsql/client/node";
|
||||
import type { App, CreateAppConfig } from "App";
|
||||
import { StorageLocalAdapter } from "adapter/node/storage";
|
||||
import { registerLocalMediaAdapter } from "adapter/node/storage";
|
||||
import type { CliBkndConfig, CliCommand } from "cli/types";
|
||||
import { Option } from "commander";
|
||||
import { config } from "core";
|
||||
@@ -56,13 +56,6 @@ export const run: CliCommand = (program) => {
|
||||
.action(action);
|
||||
};
|
||||
|
||||
// automatically register local adapter
|
||||
// @todo: add back
|
||||
/* const local = StorageLocalAdapter.prototype.getName();
|
||||
if (!registries.media.has(local)) {
|
||||
registries.media.register(local, StorageLocalAdapter);
|
||||
} */
|
||||
|
||||
type MakeAppConfig = {
|
||||
connection?: CreateAppConfig["connection"];
|
||||
server?: { platform?: Platform };
|
||||
@@ -71,10 +64,12 @@ type MakeAppConfig = {
|
||||
};
|
||||
|
||||
async function makeApp(config: MakeAppConfig) {
|
||||
return await createRuntimeApp({
|
||||
const app = await createRuntimeApp({
|
||||
serveStatic: await serveStatic(config.server?.platform ?? "node"),
|
||||
...config,
|
||||
});
|
||||
registerLocalMediaAdapter(app);
|
||||
return app;
|
||||
}
|
||||
|
||||
export async function makeConfigApp(_config: CliBkndConfig, platform?: Platform) {
|
||||
|
||||
@@ -2,7 +2,7 @@ import type { AppEntity, Constructor } from "core";
|
||||
import { $console, objectTransform } from "core/utils";
|
||||
import type { Entity, EntityManager } from "data";
|
||||
import { type FileUploadedEventData, Storage, type StorageAdapter, MediaPermissions } from "media";
|
||||
import { Module } from "modules/Module";
|
||||
import { Module, type ModuleBuildContext } from "modules/Module";
|
||||
import { type FieldSchema, em, entity } from "../data/prototype";
|
||||
import { MediaController } from "./api/MediaController";
|
||||
import { mediaConfigSchema, type TAppMediaConfig } from "./media-schema";
|
||||
@@ -25,21 +25,18 @@ export class AppMedia extends Module<Required<TAppMediaConfig>> {
|
||||
private _storage?: Storage;
|
||||
adapters: Map<string, ClassThatImplements<StorageAdapter>> = new Map();
|
||||
|
||||
constructor(initial?: Partial<TAppMediaConfig>, _ctx?: ModuleBuildContext) {
|
||||
super(initial, _ctx);
|
||||
this.adapters.set("s3", StorageS3Adapter);
|
||||
this.adapters.set("cloudinary", StorageCloudinaryAdapter);
|
||||
}
|
||||
|
||||
override async build() {
|
||||
if (!this.config.enabled) {
|
||||
this.setBuilt();
|
||||
return;
|
||||
}
|
||||
|
||||
// register default adapters
|
||||
if (!this.adapters.has("s3")) {
|
||||
this.adapters.set("s3", StorageS3Adapter);
|
||||
}
|
||||
|
||||
if (!this.adapters.has("cloudinary")) {
|
||||
this.adapters.set("cloudinary", StorageCloudinaryAdapter);
|
||||
}
|
||||
|
||||
if (!this.config.adapter) {
|
||||
console.info("No storage adapter provided, skip building media.");
|
||||
return;
|
||||
|
||||
@@ -38,8 +38,11 @@ export abstract class Module<Schema extends object = object> {
|
||||
overwritePaths: this.getOverwritePaths(),
|
||||
onBeforeUpdate: this.onBeforeUpdate.bind(this),
|
||||
});
|
||||
this.init();
|
||||
}
|
||||
|
||||
init() {}
|
||||
|
||||
static ctx_flags = {
|
||||
sync_required: false,
|
||||
ctx_reload_required: false,
|
||||
|
||||
@@ -80,6 +80,8 @@ export type ModuleManagerOptions = {
|
||||
seed?: (ctx: ModuleBuildContext) => Promise<void>;
|
||||
// called right after modules are built, before finish
|
||||
onModulesBuilt?: (ctx: ModuleBuildContext) => Promise<void>;
|
||||
// called right after modules are created, before build
|
||||
onModulesCreated?: (modules: Modules, ctx: ModuleBuildContext) => void;
|
||||
/** @deprecated */
|
||||
verbosity?: Verbosity;
|
||||
};
|
||||
@@ -127,8 +129,16 @@ export class ModuleManagerConfigUpdateEvent<
|
||||
}> {
|
||||
static override slug = "mm-config-update";
|
||||
}
|
||||
export class ModuleManagerModulesCreatedEvent extends ModuleManagerEvent<{
|
||||
modules: Modules;
|
||||
ctx: ModuleBuildContext;
|
||||
}> {
|
||||
static override slug = "mm-modules-created";
|
||||
}
|
||||
|
||||
export const ModuleManagerEvents = {
|
||||
ModuleManagerConfigUpdateEvent,
|
||||
ModuleManagerModulesCreatedEvent,
|
||||
};
|
||||
|
||||
// @todo: cleanup old diffs on upgrade
|
||||
@@ -195,6 +205,11 @@ export class ModuleManager {
|
||||
|
||||
this.modules[key] = module;
|
||||
}
|
||||
|
||||
if (this.options?.onModulesCreated) {
|
||||
this.options.onModulesCreated(this.modules, context);
|
||||
}
|
||||
|
||||
this.logger.log("modules created");
|
||||
} catch (e) {
|
||||
this.logger.log("failed to create modules", e);
|
||||
|
||||
@@ -64,12 +64,13 @@ const FieldImpl = ({
|
||||
const id = `${name}-${useId()}`;
|
||||
const required = typeof _required === "boolean" ? _required : ctx.required;
|
||||
|
||||
if (!isTypeSchema(schema))
|
||||
if (!schema) {
|
||||
return (
|
||||
<Pre>
|
||||
[Field] {path} has no schema ({JSON.stringify(schema)})
|
||||
</Pre>
|
||||
);
|
||||
}
|
||||
|
||||
if (isType(schema.type, "object")) {
|
||||
return <ObjectField path={name} />;
|
||||
|
||||
+1
-1
@@ -49,5 +49,5 @@
|
||||
"__test__",
|
||||
"e2e/**/*.ts"
|
||||
],
|
||||
"exclude": ["node_modules", "dist", "dist/types", "**/*.d.ts"]
|
||||
"exclude": ["node_modules", "dist", "dist/types", "**/*.d.ts", "**/dist/**"]
|
||||
}
|
||||
|
||||
+10
-5
@@ -1,8 +1,8 @@
|
||||
import { readFile } from "node:fs/promises";
|
||||
import { serveStatic } from "@hono/node-server/serve-static";
|
||||
import { showRoutes } from "hono/dev";
|
||||
import { App, registries } from "./src";
|
||||
import { StorageLocalAdapter } from "./src/adapter/node";
|
||||
import { App } from "./src/App";
|
||||
import { StorageLocalAdapter } from "./src/adapter/node/storage/StorageLocalAdapter";
|
||||
import type { Connection } from "./src/data/connection/Connection";
|
||||
import { __bknd } from "modules/ModuleManager";
|
||||
import { nodeSqlite } from "./src/adapter/node/connection/NodeSqliteConnection";
|
||||
@@ -10,8 +10,6 @@ import { libsql } from "./src/data/connection/sqlite/libsql/LibsqlConnection";
|
||||
import { $console } from "core/utils";
|
||||
import { createClient } from "@libsql/client";
|
||||
|
||||
registries.media.register("local", StorageLocalAdapter);
|
||||
|
||||
const example = import.meta.env.VITE_EXAMPLE;
|
||||
|
||||
let connection: Connection;
|
||||
@@ -70,7 +68,7 @@ if (import.meta.env.VITE_DB_LIBSQL_URL) {
|
||||
} */
|
||||
|
||||
let app: App;
|
||||
const recreate = import.meta.env.VITE_APP_FRESH === "1";
|
||||
const recreate = true; //import.meta.env.VITE_APP_FRESH === "1";
|
||||
const debugRerenders = import.meta.env.VITE_DEBUG_RERENDERS === "1";
|
||||
let firstStart = true;
|
||||
export default {
|
||||
@@ -78,6 +76,13 @@ export default {
|
||||
if (!app || recreate) {
|
||||
app = App.create({
|
||||
connection,
|
||||
options: {
|
||||
manager: {
|
||||
onModulesCreated: (modules, ctx) => {
|
||||
modules.media.adapters.set("local", StorageLocalAdapter);
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
app.emgr.onEvent(
|
||||
App.Events.AppBuiltEvent,
|
||||
|
||||
@@ -3,9 +3,6 @@ import { registerLocalMediaAdapter } from "bknd/adapter/node";
|
||||
import { boolean, em, entity, text } from "bknd/data";
|
||||
import { secureRandomString } from "bknd/utils";
|
||||
|
||||
// since we're running in node, we can register the local media adapter
|
||||
const local = registerLocalMediaAdapter();
|
||||
|
||||
// the em() function makes it easy to create an initial schema
|
||||
const schema = em({
|
||||
todos: entity("todos", {
|
||||
@@ -41,11 +38,17 @@ export default {
|
||||
// ... and media
|
||||
media: {
|
||||
enabled: true,
|
||||
adapter: local({
|
||||
path: "./public/uploads",
|
||||
}),
|
||||
adapter: {
|
||||
type: "local",
|
||||
config: {
|
||||
path: "./public/uploads",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
beforeBuild: (app) => {
|
||||
registerLocalMediaAdapter(app);
|
||||
},
|
||||
options: {
|
||||
// the seed option is only executed if the database was empty
|
||||
seed: async (ctx) => {
|
||||
|
||||
@@ -3,16 +3,6 @@ import { boolean, em, entity, text } from "bknd/data";
|
||||
import { registerLocalMediaAdapter } from "bknd/adapter/node";
|
||||
import { secureRandomString } from "bknd/utils";
|
||||
|
||||
// The local media adapter works well in development, and server based
|
||||
// deployments. However, on vercel or any other serverless deployments,
|
||||
// you shouldn't use a filesystem based media adapter.
|
||||
//
|
||||
// Additionally, if you run the bknd api on the "edge" runtime,
|
||||
// this would not work as well.
|
||||
//
|
||||
// For production, it is recommended to uncomment the line below.
|
||||
const local = registerLocalMediaAdapter();
|
||||
|
||||
const schema = em({
|
||||
todos: entity("todos", {
|
||||
title: text(),
|
||||
@@ -50,11 +40,23 @@ export default {
|
||||
// ... and media
|
||||
media: {
|
||||
enabled: true,
|
||||
adapter: local({
|
||||
path: "./public/uploads",
|
||||
}),
|
||||
adapter: {
|
||||
type: "local",
|
||||
config: {
|
||||
path: "./public/uploads",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
beforeBuild: (app) => {
|
||||
// The local media adapter works well in development, and server based
|
||||
// deployments. However, on vercel or any other serverless deployments,
|
||||
// you shouldn't use a filesystem based media adapter.
|
||||
//
|
||||
// Additionally, if you run the bknd api on the "edge" runtime,
|
||||
// this would not work as well.
|
||||
registerLocalMediaAdapter(app);
|
||||
},
|
||||
options: {
|
||||
// the seed option is only executed if the database was empty
|
||||
seed: async (ctx) => {
|
||||
|
||||
@@ -3,9 +3,6 @@ import type { ReactRouterBkndConfig } from "bknd/adapter/react-router";
|
||||
import { boolean, em, entity, text } from "bknd/data";
|
||||
import { secureRandomString } from "bknd/utils";
|
||||
|
||||
// since we're running in node, we can register the local media adapter
|
||||
const local = registerLocalMediaAdapter();
|
||||
|
||||
const schema = em({
|
||||
todos: entity("todos", {
|
||||
title: text(),
|
||||
@@ -40,11 +37,18 @@ export default {
|
||||
// ... and media
|
||||
media: {
|
||||
enabled: true,
|
||||
adapter: local({
|
||||
path: "./public/uploads",
|
||||
}),
|
||||
adapter: {
|
||||
type: "local",
|
||||
config: {
|
||||
path: "./public/uploads",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
beforeBuild: (app) => {
|
||||
// since we're running in node, we can register the local media adapter
|
||||
registerLocalMediaAdapter(app);
|
||||
},
|
||||
options: {
|
||||
// the seed option is only executed if the database was empty
|
||||
seed: async (ctx) => {
|
||||
|
||||
Reference in New Issue
Block a user