@social-mail/social-mail-web-server 1.7.710 → 1.7.712
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.
- package/dist/server/services/app-temp-file/AppTempFileService.d.ts.map +1 -1
- package/dist/server/services/app-temp-file/AppTempFileService.js +3 -2
- package/dist/server/services/app-temp-file/AppTempFileService.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/server/services/app-temp-file/AppTempFileService.ts +3 -2
package/package.json
CHANGED
|
@@ -24,7 +24,7 @@ export default class AppTempFileService {
|
|
|
24
24
|
|
|
25
25
|
await using tx = await this.db.connection.createTransaction();
|
|
26
26
|
|
|
27
|
-
const currentPath = `${appFile.
|
|
27
|
+
const currentPath = `${appFile.path}%`;
|
|
28
28
|
if (deleteNonExistent) {
|
|
29
29
|
await this.db.appFiles
|
|
30
30
|
.where({ folderID: appFile.appFileID, currentPath }, (p) => (x) => Sql.text.like(x.path, p.currentPath) && x.appFileID !== p.folderID )
|
|
@@ -85,6 +85,7 @@ export default class AppTempFileService {
|
|
|
85
85
|
dateCreated: child.dateCreated,
|
|
86
86
|
dateUpdated: child.dateCreated,
|
|
87
87
|
parentID: destFolderID,
|
|
88
|
+
isDeleted: false,
|
|
88
89
|
fileSize: child.fileSize
|
|
89
90
|
}, {
|
|
90
91
|
appFileID: existing.appFileID
|
|
@@ -99,7 +100,7 @@ export default class AppTempFileService {
|
|
|
99
100
|
|
|
100
101
|
|
|
101
102
|
if (child.isFolder) {
|
|
102
|
-
const folderSize = await this.copyFolder(
|
|
103
|
+
const folderSize = await this.copyFolder(child, path + child.name + "/", existing, newPath);
|
|
103
104
|
await this.db.appFiles.statements.update({ fileSize: folderSize as any as number}, { appFileID: existing.appFileID});
|
|
104
105
|
size += folderSize;
|
|
105
106
|
}
|