@social-mail/social-mail-web-server 1.4.710 → 1.4.711
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/seed/ui/seed-ui.js +1 -1
- package/dist/server/services/files/SnapshotService.d.ts.map +1 -1
- package/dist/server/services/files/SnapshotService.js +3 -0
- package/dist/server/services/files/SnapshotService.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/server/seed/ui/seed-ui.ts +1 -1
- package/src/server/services/files/SnapshotService.ts +3 -0
package/package.json
CHANGED
|
@@ -452,6 +452,9 @@ export default class SnapshotService {
|
|
|
452
452
|
@cacheFor()
|
|
453
453
|
async findSnapshotChildren(paths: string[], folderID = this.snapshotRoot.appFileID): Promise<AppFile> {
|
|
454
454
|
const [ first, ... rest ] = paths;
|
|
455
|
+
if (!first) {
|
|
456
|
+
return this.findSnapshotChildren(rest, folderID);
|
|
457
|
+
}
|
|
455
458
|
const child = this.snapshotFiles.find((x) => x.parentID === folderID && x.name === first);
|
|
456
459
|
if (!child) {
|
|
457
460
|
console.log(`File ${first} not found in folder ${folderID}\n${new Error().stack}`);
|