@tmlmobilidade/interfaces 20260209.2202.10 → 20260212.105.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -159,7 +159,7 @@ class FilesClass extends MongoCollectionClass {
|
|
|
159
159
|
await this.storageService.uploadFile(filePath, file, mimeType);
|
|
160
160
|
//
|
|
161
161
|
// C.3. Insert file record
|
|
162
|
-
result = await this.insertOne({ ...createFileDto, _id: fileId }, { options });
|
|
162
|
+
result = await this.insertOne({ ...createFileDto, _id: fileId, type: mimeType }, { options });
|
|
163
163
|
await session.commitTransaction();
|
|
164
164
|
}
|
|
165
165
|
catch (error) {
|