mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-17 04:46:05 +00:00
improve media mime type inferring + added uploadToEntity in media api
This commit is contained in:
@@ -126,9 +126,8 @@ export class AppMedia extends Module<typeof mediaConfigSchema> {
|
||||
const payload = this.uploadedEventDataToMediaPayload(e.params);
|
||||
await mutator.insertOne(payload);
|
||||
mutator.__unstable_toggleSystemEntityCreation(true);
|
||||
console.log("App:storage:file uploaded", e);
|
||||
},
|
||||
"sync"
|
||||
{ mode: "sync", id: "add-data-media" }
|
||||
);
|
||||
|
||||
// when file is deleted, sync with media entity
|
||||
@@ -144,7 +143,7 @@ export class AppMedia extends Module<typeof mediaConfigSchema> {
|
||||
|
||||
console.log("App:storage:file deleted", e);
|
||||
},
|
||||
"sync"
|
||||
{ mode: "sync", id: "delete-data-media" }
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user