added index on media entity_id, report query with unindexed fields

This commit is contained in:
dswbx
2025-02-22 22:09:50 +01:00
parent b8f87a2097
commit 9a741f49a0
4 changed files with 26 additions and 8 deletions

View File

@@ -51,7 +51,7 @@ export class AppMedia extends Module<typeof mediaConfigSchema> {
const media = this.getMediaEntity(true);
this.ensureSchema(
em({ [media.name as "media"]: media }, ({ index }, { media }) => {
index(media).on(["path"], true).on(["reference"]);
index(media).on(["path"], true).on(["reference"]).on(["entity_id"]);
})
);
} catch (e) {