mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-17 04:46:05 +00:00
feat: improved abilities of plugins, moved schema fns to ctx
This commit is contained in:
@@ -51,7 +51,7 @@ export class AppMedia extends Module<typeof mediaConfigSchema> {
|
||||
this.ctx.server.route(this.basepath, new MediaController(this).getController());
|
||||
|
||||
const media = this.getMediaEntity(true);
|
||||
this.ensureSchema(
|
||||
this.ctx.helper.ensureSchema(
|
||||
em({ [media.name as "media"]: media }, ({ index }, { media }) => {
|
||||
index(media).on(["path"], true).on(["reference"]).on(["entity_id"]);
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user