@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@social-mail/social-mail-web-server",
3
- "version": "1.7.710",
3
+ "version": "1.7.712",
4
4
  "description": "## Phase 1",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -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.appFileID}/%`;
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(folder, path + child.name + "/", existing, newPath);
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
  }