@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@social-mail/social-mail-web-server",
3
- "version": "1.4.710",
3
+ "version": "1.4.711",
4
4
  "description": "## Phase 1",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -3,7 +3,7 @@ import semver from "semver";
3
3
 
4
4
  export default async function seedUI(config: DBConfig) {
5
5
 
6
- const version = "1.2.277";
6
+ const version = "1.2.280";
7
7
 
8
8
  const existing = await config.get(UIPackageConfig, false);
9
9
  if (existing) {
@@ -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}`);