mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-17 21:06:04 +00:00
fix media mime guessing when uploading to entity
This commit is contained in:
@@ -124,8 +124,9 @@ export class AppMedia extends Module<typeof mediaConfigSchema> {
|
||||
const mutator = em.mutator(media);
|
||||
mutator.__unstable_toggleSystemEntityCreation(false);
|
||||
const payload = this.uploadedEventDataToMediaPayload(e.params);
|
||||
await mutator.insertOne(payload);
|
||||
const { data } = await mutator.insertOne(payload);
|
||||
mutator.__unstable_toggleSystemEntityCreation(true);
|
||||
return { data };
|
||||
},
|
||||
{ mode: "sync", id: "add-data-media" }
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user