@social-mail/social-mail-client 1.2.486 → 1.2.488

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.
@@ -0,0 +1,12 @@
1
+ import { PGlite } from '@electric-sql/pglite'
2
+ import { worker } from '@electric-sql/pglite/worker'
3
+
4
+ worker({
5
+ async init(options) {
6
+ const meta = options.meta;
7
+ // Create and return a PGlite instance
8
+ return new PGlite({
9
+ dataDir: options.dataDir,
10
+ })
11
+ },
12
+ })
@@ -33241,11 +33241,13 @@ System.register(["tslib", "@web-atoms/core/dist/di/DITransient", "@web-atoms/cor
33241
33241
  return __awaiter(this, void 0, void 0, function* () {
33242
33242
  yield this.entityService.save(fa);
33243
33243
  const {
33244
- accessID
33244
+ fileID,
33245
+ userID
33245
33246
  } = fa;
33246
33247
  return this.entityService.query(AppFileAccess).where({
33247
- accessID
33248
- }, p => x => x.accessID === p.accessID).include(x => x.user).firstOrDefault();
33248
+ userID,
33249
+ fileID
33250
+ }, p => x => x.fileID === p.fileID && x.userID === p.userID).include(x => x.user).firstOrDefault();
33249
33251
  });
33250
33252
  }
33251
33253
  };