mirror of
https://github.com/bknd-io/bknd/
synced 2026-08-04 00:56:01 +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