@payloadcms/db-postgres 0.8.5 → 0.8.7

Sign up to get free protection for your applications and to get access to all the features.
package/dist/count.js CHANGED
@@ -20,7 +20,7 @@ function _interop_require_default(obj) {
20
20
  const count = async function count({ collection, locale, req, where: whereArg }) {
21
21
  const collectionConfig = this.payload.collections[collection].config;
22
22
  const tableName = this.tableNameMap.get((0, _tosnakecase.default)(collectionConfig.slug));
23
- const db = this.sessions[req.transactionID]?.db || this.drizzle;
23
+ const db = this.sessions[await req.transactionID]?.db || this.drizzle;
24
24
  const table = this.tables[tableName];
25
25
  const { joinAliases, joins, where } = await (0, _buildQuery.default)({
26
26
  adapter: this,
@@ -62,4 +62,4 @@ const count = async function count({ collection, locale, req, where: whereArg })
62
62
  };
63
63
  };
64
64
 
65
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9jb3VudC50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgdHlwZSB7IENvdW50IH0gZnJvbSAncGF5bG9hZC9kYXRhYmFzZSdcbmltcG9ydCB0eXBlIHsgU2FuaXRpemVkQ29sbGVjdGlvbkNvbmZpZyB9IGZyb20gJ3BheWxvYWQvdHlwZXMnXG5cbmltcG9ydCB7IHNxbCB9IGZyb20gJ2RyaXp6bGUtb3JtJ1xuaW1wb3J0IHRvU25ha2VDYXNlIGZyb20gJ3RvLXNuYWtlLWNhc2UnXG5cbmltcG9ydCB0eXBlIHsgQ2hhaW5lZE1ldGhvZHMgfSBmcm9tICcuL2ZpbmQvY2hhaW5NZXRob2RzJ1xuaW1wb3J0IHR5cGUgeyBQb3N0Z3Jlc0FkYXB0ZXIgfSBmcm9tICcuL3R5cGVzJ1xuXG5pbXBvcnQgeyBjaGFpbk1ldGhvZHMgfSBmcm9tICcuL2ZpbmQvY2hhaW5NZXRob2RzJ1xuaW1wb3J0IGJ1aWxkUXVlcnkgZnJvbSAnLi9xdWVyaWVzL2J1aWxkUXVlcnknXG5cbmV4cG9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ElBQUksQ0FBQ1YsTUFBTSxDQUFDYyxVQUFVO29CQUFFTjtpQkFBVTtnQkFDekNHLFFBQVE7WUFDVjtRQUNGO0lBQ0Y7SUFFQSxNQUFNSSxjQUFjLE1BQU1DLElBQUFBLDBCQUFZLEVBQUM7UUFDckNDLFNBQVNYO1FBQ1RZLE9BQU92QixHQUNKd0IsTUFBTSxDQUFDO1lBQ052QyxPQUFPd0MsSUFBQUEsZUFBRyxDQUFRLENBQUM7c0JBQ0wsRUFBRSxJQUFJLENBQUNwQixNQUFNLENBQUNWLFVBQVUsQ0FBQytCLEVBQUUsQ0FBQyxDQUFDLENBQUM7UUFDOUMsR0FDQ0MsSUFBSSxDQUFDdkIsT0FDTGYsS0FBSyxDQUFDQTtJQUNYO0lBRUEsT0FBTztRQUFFdUMsV0FBV0MsT0FBT1QsV0FBVyxDQUFDLEVBQUUsQ0FBQ25DLEtBQUs7SUFBRTtBQUNuRCJ9
package/dist/create.js CHANGED
@@ -16,7 +16,7 @@ function _interop_require_default(obj) {
16
16
  };
17
17
  }
18
18
  const create = async function create({ collection: collectionSlug, data, req }) {
19
- const db = this.sessions[req.transactionID]?.db || this.drizzle;
19
+ const db = this.sessions[await req.transactionID]?.db || this.drizzle;
20
20
  const collection = this.payload.collections[collectionSlug].config;
21
21
  const tableName = this.tableNameMap.get((0, _tosnakecase.default)(collection.slug));
22
22
  const result = await (0, _upsertRow.upsertRow)({
@@ -31,4 +31,4 @@ const create = async function create({ collection: collectionSlug, data, req })
31
31
  return result;
32
32
  };
33
33
 
34
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9jcmVhdGUudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHR5cGUgeyBDcmVhdGUgfSBmcm9tICdwYXlsb2FkL2RhdGFiYXNlJ1xuXG5pbXBvcnQgdHlwZSB7IFBvc3RncmVzQWRhcHRlciB9IGZyb20gJy4vdHlwZXMnXG5c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WUiLCJ0YWJsZU5hbWVNYXAiLCJnZXQiLCJ0b1NuYWtlQ2FzZSIsInNsdWciLCJyZXN1bHQiLCJ1cHNlcnRSb3ciLCJhZGFwdGVyIiwiZmllbGRzIiwib3BlcmF0aW9uIl0sInJhbmdlTWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7IiwibWFwcGluZ3MiOiI7Ozs7K0JBT2FBOzs7ZUFBQUE7OzsyQkFIYTtvRUFDRjs7Ozs7O0FBRWpCLE1BQU1BLFNBQWlCLGVBQWVBLE9BRTNDLEVBQUVDLFlBQVlDLGNBQWMsRUFBRUMsSUFBSSxFQUFFQyxHQUFHLEVBQUU7SUFFekMsTUFBTUMsS0FBSyxJQUFJLENBQUNDLFFBQVEsQ0FBQyxNQUFNRixJQUFJRyxhQUFhLENBQUMsRUFBRUYsTUFBTSxJQUFJLENBQUNHLE9BQU87SUFDckUsTUFBTVAsYUFBYSxJQUFJLENBQUNRLE9BQU8sQ0FBQ0MsV0FBVyxDQUFDUixlQUFlLENBQUNTLE1BQU07SUFFbEUsTUFBTUMsWUFBWSxJQUFJLENBQUNDLFlBQVksQ0FBQ0MsR0FBRyxDQUFDQyxJQUFBQSxvQkFBVyxFQUFDZCxXQUFXZSxJQUFJO0lBRW5FLE1BQU1DLFNBQVMsTUFBTUMsSUFBQUEsb0JBQVMsRUFBQztRQUM3QkMsU0FBUyxJQUFJO1FBQ2JoQjtRQUNBRTtRQUNBZSxRQUFRbkIsV0FBV21CLE1BQU07UUFDekJDLFdBQVc7UUFDWGpCO1FBQ0FRO0lBQ0Y7SUFFQSxPQUFPSztBQUNUIn0=
@@ -16,7 +16,7 @@ function _interop_require_default(obj) {
16
16
  };
17
17
  }
18
18
  async function createGlobal({ slug, data, req = {} }) {
19
- const db = this.sessions[req.transactionID]?.db || this.drizzle;
19
+ const db = this.sessions[await req.transactionID]?.db || this.drizzle;
20
20
  const globalConfig = this.payload.globals.config.find((config)=>config.slug === slug);
21
21
  const tableName = this.tableNameMap.get((0, _tosnakecase.default)(globalConfig.slug));
22
22
  const result = await (0, _upsertRow.upsertRow)({
@@ -31,4 +31,4 @@ async function createGlobal({ slug, data, req = {} }) {
31
31
  return result;
32
32
  }
33
33
 
34
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9jcmVhdGVHbG9iYWwudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHR5cGUgeyBDcmVhdGVHbG9iYWxBcmdzIH0gZnJvbSAncGF5bG9hZC9kYXRhYmFzZSdcbmltcG9ydCB0eXBlIHsgUGF5bG9hZFJlcXVlc3QsIFR5cGVXaXRoSUQgfSBmcm9tICdwYXlsb2FkL3R5cGVzJ1xuXG5pbXBvcnQgdG9TbmFrZUNhc2UgZnJvbSAndG8tc25ha2UtY2FzZSdcblxuaW1wb3J0IHR5cGUgeyBQb3N0Z3Jlc0FkYXB0ZXIgfSBmcm9tICcuL3R5cGVzJ1xuXG5pbXBvcnQgeyB1cHNlcnRSb3cgfSBmcm9tICcuL3Vwc2VydFJvdydcblxuZXhwb3J0IGFzeW5jIGZ1bmN0aW9uIGNyZWF0ZUdsb2JhbDxUIGV4dGVuZHMgVHlwZVdpdGhJRD4oXG4gIHRoaXM6IFBvc3RncmVzQWRhcHRlcixcbiAgeyBzbHVnLCBkYXRhLCByZXEgPSB7fSBhcyBQYXlsb2FkUmVxdWVzdCB9OiBDcmVhdGVHbG9iYWxBcmdzLFxuKTogUHJvbWlzZTxUPiB7XG4gIGNvbnN0IGRiID0gdGhpcy5zZXNzaW9uc1tyZXEudHJhbnNhY3Rpb25JRF0/LmRiIHx8IHRoaXMuZHJpenpsZVxuICBjb25zdCBnbG9iYWxDb25maWcgPSB0aGlzLnBheWxvYWQuZ2xvYmFscy5jb25maWcuZmluZCgoY29uZmlnKSA9PiBjb25maWcuc2x1ZyA9PT0gc2x1ZylcblxuICBjb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s7OztBQUVuQixlQUFlQSxhQUVwQixFQUFFQyxJQUFJLEVBQUVDLElBQUksRUFBRUMsTUFBTSxDQUFDLENBQW1CLEVBQW9CO0lBRTVELE1BQU1DLEtBQUssSUFBSSxDQUFDQyxRQUFRLENBQUMsTUFBTUYsSUFBSUcsYUFBYSxDQUFDLEVBQUVGLE1BQU0sSUFBSSxDQUFDRyxPQUFPO0lBQ3JFLE1BQU1DLGVBQWUsSUFBSSxDQUFDQyxPQUFPLENBQUNDLE9BQU8sQ0FBQ0MsTUFBTSxDQUFDQyxJQUFJLENBQUMsQ0FBQ0QsU0FBV0EsT0FBT1YsSUFBSSxLQUFLQTtJQUVsRixNQUFNWSxZQUFZLElBQUksQ0FBQ0MsWUFBWSxDQUFDQyxHQUFHLENBQUNDLElBQUFBLG9CQUFXLEVBQUNSLGFBQWFQLElBQUk7SUFFckUsTUFBTWdCLFNBQVMsTUFBTUMsSUFBQUEsb0JBQVMsRUFBSTtRQUNoQ0MsU0FBUyxJQUFJO1FBQ2JqQjtRQUNBRTtRQUNBZ0IsUUFBUVosYUFBYVksTUFBTTtRQUMzQkMsV0FBVztRQUNYbEI7UUFDQVU7SUFDRjtJQUVBLE9BQU9JO0FBQ1QifQ==
@@ -18,7 +18,7 @@ function _interop_require_default(obj) {
18
18
  };
19
19
  }
20
20
  async function createGlobalVersion({ autosave, globalSlug, req = {}, versionData }) {
21
- const db = this.sessions[req.transactionID]?.db || this.drizzle;
21
+ const db = this.sessions[await req.transactionID]?.db || this.drizzle;
22
22
  const global = this.payload.globals.config.find(({ slug })=>slug === globalSlug);
23
23
  const tableName = this.tableNameMap.get(`_${(0, _tosnakecase.default)(global.slug)}${this.versionsSuffix}`);
24
24
  const result = await (0, _upsertRow.upsertRow)({
@@ -45,4 +45,4 @@ async function createGlobalVersion({ autosave, globalSlug, req = {}, versionData
45
45
  return result;
46
46
  }
47
47
 
48
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIj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SUFBSSxFQUFFZixPQUFPZSxFQUFFLENBQUM7SUFDbkMsQ0FBQztJQUNIO0lBRUEsT0FBT2Y7QUFDVCJ9
@@ -18,7 +18,7 @@ function _interop_require_default(obj) {
18
18
  };
19
19
  }
20
20
  async function createVersion({ autosave, collectionSlug, parent, req = {}, versionData }) {
21
- const db = this.sessions[req.transactionID]?.db || this.drizzle;
21
+ const db = this.sessions[await req.transactionID]?.db || this.drizzle;
22
22
  const collection = this.payload.collections[collectionSlug].config;
23
23
  const defaultTableName = (0, _tosnakecase.default)(collection.slug);
24
24
  const tableName = this.tableNameMap.get(`_${defaultTableName}${this.versionsSuffix}`);
@@ -56,4 +56,4 @@ async function createVersion({ autosave, collectionSlug, parent, req = {}, versi
56
56
  return result;
57
57
  }
58
58
 
59
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9jcmVhdGVWZXJzaW9uLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgQ3JlYXRlVmVyc2lvbkFyZ3MsIFR5cGVXaXRoVmVyc2lvbiB9IGZyb20gJ3BheWxvYWQvZGF0YWJhc2UnXG5pbXBvcnQgdHlwZSB7IFBheWxvYWRSZXF1ZXN0LCBUeXBlV2l0aElEIH0gZnJvbSAncGF5bG9hZC90eXBlcydcblxuaW1wb3J0IHsgc3FsIH0gZnJvbSAnZHJpenpsZS1vcm0nXG5pbXBvcnQgeyBidWlsZFZlcnNpb25Db2xsZWN0aW9uRmllbGRzIH0gZnJvbSAncGF5bG9hZC92ZXJzaW9ucydcbmltcG9ydCB0b1NuYWtlQ2FzZSBmcm9tICd0by1zbmFrZS1jYXNlJ1xuXG5pbXBvcnQgdHlwZSB7IFBvc3RncmVzQWRhcHRlciB9IGZyb20gJy4vdHlwZXMnXG5cbmltcG9ydCB7IHVwc2VydFJvdyB9IGZyb20gJy4vdXBzZXJ0Um93J1xuXG5leHBvcnQgYXN5bmMgZnVuY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FDWDFCO1FBQ0FhO0lBQ0Y7SUFFQSxNQUFNYyxRQUFRLElBQUksQ0FBQ0MsTUFBTSxDQUFDZixVQUFVO0lBRXBDLE1BQU1nQixxQkFBcUIsSUFBSSxDQUFDRCxNQUFNLENBQUMsQ0FBQyxFQUFFZixVQUFVLEVBQUUsSUFBSSxDQUFDaUIsbUJBQW1CLENBQUMsQ0FBQyxDQUFDO0lBRWpGLElBQUl4QixXQUFXeUIsUUFBUSxDQUFDQyxNQUFNLEVBQUU7UUFDOUIsTUFBTTlCLEdBQUcrQixPQUFPLENBQUNDLElBQUFBLGVBQUcsQ0FBQSxDQUFDO2FBQ1osRUFBRVAsTUFBTTs7V0FFVixFQUFFRSxtQkFBbUI7WUFDcEIsRUFBRUYsTUFBTVQsRUFBRSxDQUFDLEdBQUcsRUFBRVcsbUJBQW1COUIsTUFBTSxDQUFDO1lBQzFDLEVBQUU4QixtQkFBbUJNLElBQUksQ0FBQyxHQUFHLEVBQUUsU0FBUztZQUN4QyxFQUFFTixrQkFBa0IsQ0FBQyxDQUFDLEVBQUUvQixlQUFlLEVBQUUsQ0FBQyxDQUFDLENBQUMsR0FBRyxFQUFFQyxPQUFPO1lBQ3hELEVBQUU0QixNQUFNVCxFQUFFLENBQUMsSUFBSSxFQUFFQyxPQUFPRCxFQUFFLENBQUM7SUFDbkMsQ0FBQztJQUNIO0lBRUEsT0FBT0M7QUFDVCJ9
@@ -17,7 +17,7 @@ function _interop_require_default(obj) {
17
17
  };
18
18
  }
19
19
  const deleteMany = async function deleteMany({ collection, req = {}, where }) {
20
- const db = this.sessions[req.transactionID]?.db || this.drizzle;
20
+ const db = this.sessions[await req.transactionID]?.db || this.drizzle;
21
21
  const collectionConfig = this.payload.collections[collection].config;
22
22
  const tableName = this.tableNameMap.get((0, _tosnakecase.default)(collectionConfig.slug));
23
23
  const result = await (0, _findMany.findMany)({
@@ -40,4 +40,4 @@ const deleteMany = async function deleteMany({ collection, req = {}, where }) {
40
40
  }
41
41
  };
42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DLElBQUksQ0FBQ0QsTUFBTSxDQUFDckIsVUFBVSxDQUFDa0IsRUFBRSxFQUFFTDtJQUNuRjtBQUNGIn0=
package/dist/deleteOne.js CHANGED
@@ -20,7 +20,7 @@ function _interop_require_default(obj) {
20
20
  };
21
21
  }
22
22
  const deleteOne = async function deleteOne({ collection: collectionSlug, req = {}, where: whereArg }) {
23
- const db = this.sessions[req.transactionID]?.db || this.drizzle;
23
+ const db = this.sessions[await req.transactionID]?.db || this.drizzle;
24
24
  const collection = this.payload.collections[collectionSlug].config;
25
25
  const tableName = this.tableNameMap.get((0, _tosnakecase.default)(collection.slug));
26
26
  let docToDelete;
@@ -71,4 +71,4 @@ const deleteOne = async function deleteOne({ collection: collectionSlug, req = {
71
71
  return result;
72
72
  };
73
73
 
74
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9kZWxldGVPbmUudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHR5cGUgeyBEZWxldGVPbmUgfSBmcm9tICdwYXlsb2FkL2RhdGFiYXNlJ1xuaW1wb3J0IHR5cGUgeyBQYXlsb2FkUmVxdWVzdCB9IGZyb20gJ3BheWxvYWQvdHlwZXMnXG5cbmltcG9ydCB7IGVxIH0gZnJvbSAnZHJpenpsZS1vcm0nXG5pbXBvcnQgdG9TbmFrZUNhc2UgZnJvbSAndG8tc25ha2UtY2FzZSdcblxuaW1wb3J0IHR5cGUgeyBQb3N0Z3Jlc0FkYXB0ZXIgfSBmcm9tICcuL3R5cGVzJ1xuXG5pbXBvcnQgeyBidWlsZEZpbmRNYW55QXJncyB9IGZyb20gJy4vZmluZC9idWlsZEZpbmRNYW55QXJncydcbmltcG9ydCBidWlsZFF1ZXJ5IGZyb20gJy4vcXVlcmllcy9idWlsZFF1ZXJ5J1xuaW1wb3J0IHsgc2VsZWN0RGlzdGluY3QgfSBmcm9tICcuL3F1ZXJpZXMvc2VsZWN0RGlzdGluY3Q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U0FBUyxDQUFDO1lBQ2hEN0IsT0FBTzhCLElBQUFBLGNBQUUsRUFBQyxJQUFJLENBQUNDLE1BQU0sQ0FBQ3RCLFVBQVUsQ0FBQ2tCLEVBQUUsRUFBRUwsb0JBQW9CLENBQUMsRUFBRSxDQUFDSyxFQUFFO1FBQ2pFO0lBQ0YsT0FBTztRQUNMLE1BQU1LLGVBQWVDLElBQUFBLG9DQUFpQixFQUFDO1lBQ3JDZCxTQUFTLElBQUk7WUFDYmUsT0FBTztZQUNQZCxRQUFRdkIsV0FBV3VCLE1BQU07WUFDekJYO1FBQ0Y7UUFFQXVCLGFBQWFoQyxLQUFLLEdBQUdBO1FBRXJCYyxjQUFjLE1BQU1aLEdBQUcwQixLQUFLLENBQUNuQixVQUFVLENBQUNvQixTQUFTLENBQUNHO0lBQ3BEO0lBRUEsTUFBTUcsU0FBU0MsSUFBQUEsZUFBUyxFQUFDO1FBQ3ZCNUIsUUFBUSxJQUFJLENBQUNGLE9BQU8sQ0FBQ0UsTUFBTTtRQUMzQjZCLE1BQU12QjtRQUNOTSxRQUFRdkIsV0FBV3VCLE1BQU07SUFDM0I7SUFFQSxNQUFNbEIsR0FBR29DLE1BQU0sQ0FBQyxJQUFJLENBQUNQLE1BQU0sQ0FBQ3RCLFVBQVUsRUFBRVQsS0FBSyxDQUFDOEIsSUFBQUEsY0FBRSxFQUFDLElBQUksQ0FBQ0MsTUFBTSxDQUFDdEIsVUFBVSxDQUFDa0IsRUFBRSxFQUFFYixZQUFZYSxFQUFFO0lBRTFGLE9BQU9RO0FBQ1QifQ==
@@ -18,7 +18,7 @@ function _interop_require_default(obj) {
18
18
  };
19
19
  }
20
20
  const deleteVersions = async function deleteVersion({ collection, locale, req = {}, where: where }) {
21
- const db = this.sessions[req.transactionID]?.db || this.drizzle;
21
+ const db = this.sessions[await req.transactionID]?.db || this.drizzle;
22
22
  const collectionConfig = this.payload.collections[collection].config;
23
23
  const tableName = this.tableNameMap.get(`_${(0, _tosnakecase.default)(collectionConfig.slug)}${this.versionsSuffix}`);
24
24
  const fields = (0, _versions.buildVersionCollectionFields)(collectionConfig);
@@ -43,4 +43,4 @@ const deleteVersions = async function deleteVersion({ collection, locale, req =
43
43
  return docs;
44
44
  };
45
45
 
46
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9kZWxldGVWZXJzaW9ucy50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgdHlwZSB7IERlbGV0ZVZlcnNpb25zIH0gZnJvbSAncGF5bG9hZC9kYXRhYmFzZSdcbmltcG9ydCB0eXBlIHsgUGF5bG9hZFJlcXVlc3QsIFNhbml0aXplZENvbGxlY3Rpb25Db25maWcgfSBmcm9tICdwYXlsb2FkL3R5cGVzJ1xuXG5pbXBvcnQgeyBpbkFycmF5IH0gZnJvbSAnZHJpenpsZS1vcm0nXG5pbXBvcnQgeyBidWlsZFZlcnNpb25Db2xsZWN0aW9uRmllbGRzIH0gZnJvbSAncGF5bG9hZC92ZXJzaW9ucydcbmltcG9ydCB0b1NuYWtlQ2FzZSBmcm9tICd0by1zbmFrZS1jYXNlJ1xuXG5pbXBvcnQgdHlwZSB7IFBvc3RncmVzQWRhcHRlciB9IGZyb20gJy4vdHlwZXMnXG5cbmltcG9ydCB7IGZpbmRNYW55IH0gZnJvbSAnLi9maW5kL2ZpbmRNYW55J1xuXG5leHBvcnQgY29uc3QgZGVsZXRlVmVyc2lvbnM6IERlbGV0ZVZlcnNpb25zID0gYXN5bmMgZnVuY3Rpb24gZGVsZXRlVmVyc2lvbihcbiAgdGhpczogUG9zdGdyZXNBZGFwdGVyLFxuICB7IGNvbGxlY3Rpb24sIGxvY2FsZSwgcmVxID0ge30gYXMgUGF5bG9hZFJlcXVlc3QsIHdoZXJlOiB3aGVyZSB9LFxuKSB7XG4gIGNvbnN0IGRiID0gdGhpcy5zZXNzaW9uc1tyZXEudHJhbnNhY3Rpb25JRF0/LmRiIHx8IHR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QUNDLE1BQU0sQ0FBQ3JCLFVBQVUsRUFBRVQsS0FBSyxDQUFDK0IsSUFBQUEsbUJBQU8sRUFBQyxJQUFJLENBQUNELE1BQU0sQ0FBQ3JCLFVBQVUsQ0FBQ2tCLEVBQUUsRUFBRUo7SUFDbkY7SUFFQSxPQUFPTjtBQUNUIn0=
@@ -1 +1 @@
1
- {"version":3,"file":"buildFindManyArgs.d.ts","sourceRoot":"","sources":["../../src/find/buildFindManyArgs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAChD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAE1C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAI/C,KAAK,kBAAkB,GAAG;IACxB,OAAO,EAAE,eAAe,CAAA;IACxB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,KAAK,EAAE,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,MAAM,GAAG,aAAa,CAAC,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,CAAA;AAI1D,eAAO,MAAM,iBAAiB,2CAK3B,kBAAkB,KAAG,OAAO,MAAM,EAAE,OAAO,CA2D7C,CAAA"}
1
+ {"version":3,"file":"buildFindManyArgs.d.ts","sourceRoot":"","sources":["../../src/find/buildFindManyArgs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAChD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAE1C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAI/C,KAAK,kBAAkB,GAAG;IACxB,OAAO,EAAE,eAAe,CAAA;IACxB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,KAAK,EAAE,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,MAAM,GAAG,aAAa,CAAC,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,CAAA;AAI1D,eAAO,MAAM,iBAAiB,2CAK3B,kBAAkB,KAAG,OAAO,MAAM,EAAE,OAAO,CA4D7C,CAAA"}
@@ -63,10 +63,11 @@ const buildFindManyArgs = ({ adapter, depth, fields, tableName })=>{
63
63
  depth,
64
64
  fields,
65
65
  path: '',
66
+ tablePath: '',
66
67
  topLevelArgs: result,
67
68
  topLevelTableName: tableName
68
69
  });
69
70
  return result;
70
71
  };
71
72
 
72
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9maW5kL2J1aWxkRmluZE1hbnlBcmdzLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgREJRdWVyeUNvbmZpZyB9IGZyb20gJ2RyaXp6bGUtb3JtJ1xuaW1wb3J0IHR5cGUgeyBGaWVsZCB9IGZyb20gJ3BheWxvYWQvdHlwZXMnXG5cbmltcG9ydCB0eXBlIHsgUG9zdGdyZXNBZGFwdGVyIH0gZnJvbSAnLi4vdHlwZXMnXG5cbmltcG9ydCB7IHRyYXZlcnNlRmllbGRzIH0gZnJvbSAnLi90cmF2ZXJzZUZpZWxkcydcblxudHlwZSBCdWlsZEZpbmRRdWVyeUFyZ3MgPSB7XG4gIGFkYXB0ZXI6IFBvc3RncmVzQWRhcHRlclxuICBkZXB0aDogbnVtYmVyXG4gIGZpZWxkczogRmllbGRbXVxuICB0YWJsZU5hbWU6IHN0cmluZ1xufVxuXG5leHBvcnQgdHlwZSBSZXN1bHQgPSBEQlF1ZXJ5Q29uZmlnPCdtYW55JywgdHJ1ZSwgYW55LCBhbnk+XG5cbi8vIEdlbmVyYXRlIHRoZSBEcml6emxlIHF1ZXJ5IGZvciBmaW5kTWFueSBiYXNlZCBvblxuLy8gYSBjb2xsZWN0aW9uIGZpZW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sR0FBR0E7SUFDekI7SUFFQWUsSUFBQUEsOEJBQWMsRUFBQztRQUNiZjtRQUNBTjtRQUNBc0IsYUFBYWxCO1FBQ2JtQixrQkFBa0JwQjtRQUNsQkY7UUFDQUM7UUFDQXNCLE1BQU07UUFDTkMsV0FBVztRQUNYQyxjQUFjdEI7UUFDZHVCLG1CQUFtQnhCO0lBQ3JCO0lBRUEsT0FBT0M7QUFDVCJ9
@@ -20,7 +20,7 @@ function _interop_require_default(obj) {
20
20
  };
21
21
  }
22
22
  const findMany = async function find({ adapter, fields, limit: limitArg, locale, page = 1, pagination, req = {}, skip, sort, tableName, where: whereArg }) {
23
- const db = adapter.sessions[req.transactionID]?.db || adapter.drizzle;
23
+ const db = adapter.sessions[await req.transactionID]?.db || adapter.drizzle;
24
24
  const table = adapter.tables[tableName];
25
25
  const limit = limitArg ?? 10;
26
26
  let totalDocs;
@@ -175,4 +175,4 @@ const findMany = async function find({ adapter, fields, limit: limitArg, locale,
175
175
  };
176
176
  };
177
177
 
178
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9maW5kL2ZpbmRNYW55LnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgRmluZEFyZ3MgfSBmcm9tICdwYXlsb2FkL2RhdGFiYXNlJ1xuaW1wb3J0IHR5cGUgeyBGaWVsZCwgUGF5bG9hZFJlcXVlc3QsIFR5cGVXaXRoSUQgfSBmcm9tICdwYXlsb2FkL3R5cGVzJ1xuXG5pbXBvcnQgeyBpbkFycmF5LCBzcWwgfSBmcm9tICdkcml6emxlLW9ybSdcblxuaW1wb3J0IHR5cGUgeyBQb3N0Z3Jlc0FkYXB0ZXIgfSBmcm9tICcuLi90eXBlcydcbmltcG9ydCB0eXBlIHsgQ2hhaW5lZE1ldGhvZHMgfSBmcm9tICcuL2NoYWluTWV0aG9kcydcblxuaW1wb3J0IGJ1aWxkUXVlcnkgZnJvb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BCLFlBQVksQ0FBQzZDLEVBQUV6QixFQUFFLENBQUM7SUFDaEU7SUFFQSxJQUFJM0MsZUFBZSxTQUFTLENBQUNhLFdBQVc7UUFDdENBLFlBQVlxRCxRQUFRNUIsTUFBTTtRQUMxQnhCLGFBQWE7UUFDYkcsZ0JBQWdCO1FBQ2hCRixjQUFjO1FBQ2RDLGNBQWM7SUFDaEI7SUFFQSxNQUFNdUIsT0FBTzJCLFFBQVFHLEdBQUcsQ0FBQyxDQUFDQztRQUN4QixPQUFPQyxJQUFBQSxlQUFTLEVBQUM7WUFDZkMsUUFBUTlFLFFBQVErRSxPQUFPLENBQUNELE1BQU07WUFDOUJGO1lBQ0EzRTtRQUNGO0lBQ0Y7SUFFQSxPQUFPO1FBQ0w0QztRQUNBdkI7UUFDQUQ7UUFDQW5CO1FBQ0E0QyxVQUFVeEIsY0FBY2pCLE9BQU8sSUFBSTtRQUNuQ0E7UUFDQWtCO1FBQ0F3QixVQUFVMUIsY0FBY2hCLE9BQU8sSUFBSTtRQUNuQ2M7UUFDQUM7SUFDRjtBQUNGIn0=
@@ -8,9 +8,10 @@ type TraverseFieldArgs = {
8
8
  depth?: number;
9
9
  fields: Field[];
10
10
  path: string;
11
+ tablePath: string;
11
12
  topLevelArgs: Record<string, unknown>;
12
13
  topLevelTableName: string;
13
14
  };
14
- export declare const traverseFields: ({ _locales, adapter, currentArgs, currentTableName, depth, fields, path, topLevelArgs, topLevelTableName, }: TraverseFieldArgs) => Record<string, unknown>;
15
+ export declare const traverseFields: ({ _locales, adapter, currentArgs, currentTableName, depth, fields, path, tablePath, topLevelArgs, topLevelTableName, }: TraverseFieldArgs) => Record<string, unknown>;
15
16
  export {};
16
17
  //# sourceMappingURL=traverseFields.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"traverseFields.d.ts","sourceRoot":"","sources":["../../src/find/traverseFields.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAK1C,O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 function _interop_require_default(obj) {
15
15
  default: obj
16
16
  };
17
17
  }
18
- const traverseFields = ({ _locales, adapter, currentArgs, currentTableName, depth, fields, path, topLevelArgs, topLevelTableName })=>{
18
+ const traverseFields = ({ _locales, adapter, currentArgs, currentTableName, depth, fields, path, tablePath, topLevelArgs, topLevelTableName })=>{
19
19
  fields.forEach((field)=>{
20
20
  if (field.type === 'collapsible' || field.type === 'row') {
21
21
  traverseFields({
@@ -24,6 +24,7 @@ const traverseFields = ({ _locales, adapter, currentArgs, currentTableName, dept
24
24
  currentArgs,
25
25
  currentTableName,
26
26
  depth,
27
+ tablePath,
27
28
  fields: field.fields,
28
29
  path,
29
30
  topLevelArgs,
@@ -34,6 +35,7 @@ const traverseFields = ({ _locales, adapter, currentArgs, currentTableName, dept
34
35
  if (field.type === 'tabs') {
35
36
  field.tabs.forEach((tab)=>{
36
37
  const tabPath = (0, _types.tabHasName)(tab) ? `${path}${tab.name}_` : path;
38
+ const tabTablePath = (0, _types.tabHasName)(tab) ? `${tablePath}${(0, _tosnakecase.default)(tab.name)}_` : tablePath;
37
39
  traverseFields({
38
40
  _locales,
39
41
  adapter,
@@ -42,6 +44,7 @@ const traverseFields = ({ _locales, adapter, currentArgs, currentTableName, dept
42
44
  depth,
43
45
  fields: tab.fields,
44
46
  path: tabPath,
47
+ tablePath: tabTablePath,
45
48
  topLevelArgs,
46
49
  topLevelTableName
47
50
  });
@@ -61,7 +64,7 @@ const traverseFields = ({ _locales, adapter, currentArgs, currentTableName, dept
61
64
  ],
62
65
  with: {}
63
66
  };
64
- const arrayTableName = adapter.tableNameMap.get(`${currentTableName}_${path}${(0, _tosnakecase.default)(field.name)}`);
67
+ const arrayTableName = adapter.tableNameMap.get(`${currentTableName}_${tablePath}${(0, _tosnakecase.default)(field.name)}`);
65
68
  const arrayTableNameWithLocales = `${arrayTableName}${adapter.localesSuffix}`;
66
69
  if (adapter.tables[arrayTableNameWithLocales]) withArray.with._locales = _locales;
67
70
  currentArgs.with[`${path}${field.name}`] = withArray;
@@ -73,6 +76,7 @@ const traverseFields = ({ _locales, adapter, currentArgs, currentTableName, dept
73
76
  depth,
74
77
  fields: field.fields,
75
78
  path: '',
79
+ tablePath: '',
76
80
  topLevelArgs,
77
81
  topLevelTableName
78
82
  });
@@ -119,6 +123,7 @@ const traverseFields = ({ _locales, adapter, currentArgs, currentTableName, dept
119
123
  currentArgs: withBlock,
120
124
  currentTableName: tableName,
121
125
  depth,
126
+ tablePath: '',
122
127
  fields: block.fields,
123
128
  path: '',
124
129
  topLevelArgs,
@@ -133,6 +138,7 @@ const traverseFields = ({ _locales, adapter, currentArgs, currentTableName, dept
133
138
  adapter,
134
139
  currentArgs,
135
140
  currentTableName,
141
+ tablePath: `${tablePath}${(0, _tosnakecase.default)(field.name)}_`,
136
142
  depth,
137
143
  fields: field.fields,
138
144
  path: `${path}${field.name}_`,
@@ -150,4 +156,4 @@ const traverseFields = ({ _locales, adapter, currentArgs, currentTableName, dept
150
156
  return topLevelArgs;
151
157
  };
152
158
 
153
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9maW5kL3RyYXZlcnNlRmllbGRzLnRzIl0sInNvdXJjZXNDb250ZW50IjpbIi8qIGVzbGludC1kaXNhYmxlIG5vLXBhcmFtLXJlYXNzaWduICovXG5pbXBvcnQgdHlwZSB7IEZpZWxkIH0gZnJvbSAncGF5bG9hZC90eXBlcydcblxuaW1wb3J0IHsgZmllbGRBZmZlY3RzRGF0YSwgdGFiSGFzTmFtZSB9IGZyb20gJ3BheWxvYWQvdHlwZXMnXG5pbXBvcnQgdG9TbmFrZUNhc2UgZnJvbSAndG8tc25ha2UtY2FzZSdcblxuaW1wb3J0IHR5cGUgeyBQb3N0Z3Jlc0FkYXB0ZXIgfSBmcm9tICcuLi90eXBlcydcbmltcG9ydCB0eXBlIHsgUmVzdWx0IH0gZnJvbSAnLi9idWlsZEZpbmRNYW55QXJncydcblxudHlwZS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xuXG4gICAgaWYgKGZpZWxkLnR5cGUgPT09ICd0YWJzJykge1xuICAgICAgZmllbGQudGFicy5mb3JFYWNoKCh0YWIpID0+IHtcbiAgICAgICAgY29uc3QgdGFiUGF0aCA9IHRhYkhhc05hbWUodGFiKSA/IGAke3BhdGh9JHt0YWIubmFtZX1fYCA6IHBhdGhcblxuICAgICAgICB0cmF2ZXJzZUZpZWxkcyh7XG4gICAgICAgICAgX2xvY2FsZXMsXG4gICAgICAgICAgYWRhcHRlcixcbiAgICAgICAgICBjdXJyZW50QXJncyxcbiAgICAgICAgICBjdXJyZW50VGFibGVOYW1lLFxuICAgICAgICAgIGRlcHRoLFxuICAgICAgICAgIGZpZWxkczogdGFiLmZpZWxkcyxcbiAgICAgICAgICBwYXRoOiB0YWJQYXRoLFxuICAgICAgICAgIHRvcExldmVsQXJncyxcbiAgICAgICAgICB0b3BMZXZlbFRhYmxlTmFtZSxcbiAgICAgICAgfSlcbiAgICAgIH0pXG5cbiAgICAgIHJldHVyblxuICAgIH1cblxuICAgIGlmIChmaWVsZEFmZmVjdHNEYXRhKGZpZWxkKSkge1xuICAgICAgc3dpdGNoIChmaWVsZC50eXBlKSB7XG4gICAgICAgIGNhc2UgJ2FycmF5Jzoge1xuICAgICAgICAgIGNvbnN0IHdpdGhBcnJheTogUmVzdWx0ID0ge1xuICAgICAgICAgICAgY29sdW1uczoge1xuICAgICAgICAgICAgICBfcGFyZW50SUQ6IGZhbHNlLFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIG9yZGVyQnk6ICh7IF9vcmRlciB9LCB7IGFzYyB9KSA9PiBbYXNjKF9vcmRlcildLFxuICAgICAgICAgICAgd2l0aDoge30sXG4gICAgICAgICAgfVxuXG4gICAgICAgICAgY29uc3QgYXJyYXlUYWJsZU5hbWUgPSBhZGFwdGVyLnRhYmxlTmFtZU1hcC5nZXQoXG4gICAgICAgICAgICBgJHtjdXJyZW50VGFibGVOYW1lfV8ke3BhdGh9JHt0b1NuYWtlQ2FzZShmaWVsZC5uYW1lKX1gLFxuICAgICAgICAgIClcblxuICAgICAgICAgIGNvbnN0IGFycmF5VGFibGVOYW1lV2l0aExvY2FsZXMgPSBgJHthcnJheVRhYmxlTmFtZX0ke2FkYXB0ZXIubG9jYWxlc1N1ZmZpeH1gXG5cbiAgICAgICAgICBpZiAoYWRhcHRlci50YWJsZXNbYXJyYXlUYWJsZU5hbWVXaXRoTG9jYWxlc10pIHdpdGhBcnJheS53aXRoLl9sb2NhbGVzID0gX2xvY2FsZXNcbiAgICAgICAgICBjdXJyZW50QXJncy53aXRoW2Ake3BhdGh9JHtmaWVsZC5uYW1lfWBdID0gd2l0aEFycmF5XG5cbiAgICAgICAgICB0cmF2ZXJzZUZpZWxkcyh7XG4gICAgICAgICAgICBfbG9jYWxlcyxcbiAgICAgICAgICAgIGFkYXB0ZXIsXG4gICAgICAgICAgICBjdXJyZW50QXJnczogd2l0aEFycmF5LFxuICAgICAgICAgICAgY3VycmVudFRhYmxlTmFtZTogYXJyYXlUYWJsZU5hbWUsXG4gICAgICAgICAgICBkZXB0aCxcbiAgICAgICAgICAgIGZpZWxkczogZmllbGQuZmllbGRzLFxuICAgICAgICAgICAgcGF0aDogJycsXG4gICAgICAgICAgICB0b3BMZXZlbEFyZ3MsXG4gICAgICAgICAgICB0b3BMZXZlbFRhYmxlTmFtZSxcbiAgICAgICAgICB9KVxuXG4gICAgICAgICAgYnJlYWtcbiAgICAgICAgfVxuXG4gICAgICAgIGNhc2UgJ3NlbGVjdCc6IHtcbiAgICAgICAgICBpZiAoZmllbGQuaGFzTWFueSkge1xuICAgICAgICAgICAgY29uc3Qgd2l0aFNlbGVjdDogUmVzdWx0ID0ge1xuICAgICAgICAgICAgICBjb2x1bW5zOiB7XG4gICAgICAgICAgICAgICAgaWQ6IGZhbHNlLFxuICAgICAgICAgICAgICAgIG9yZGVyOiBmYWxzZSxcbiAgICAgICAgICAgICAgICBwYXJlbnQ6IGZhbHNlLFxuICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICBvcmRlckJ5OiAoeyBvcmRlciB9LCB7IGFzYyB9KSA9PiBbYXNjKG9yZGVyKV0sXG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGN1cnJlbnRBcmdzLndpdGhbYCR7cGF0aH0ke2ZpZWxkLm5hbWV9YF0gPSB3aXRoU2VsZWN0XG4gICAgICAgICAgfVxuXG4gICAgICAgICAgYnJlYWtcbiAgICAgICAgfVxuXG4gICAgICAgIGNhc2UgJ2Jsb2Nrcyc6XG4gICAgICAgICAgZmllbGQuYmxvY2tzLmZvckVhY2goKGJsb2NrKSA9PiB7XG4gICAgICAgICAgICBjb25zdCBibG9ja0tleSA9IGBfYmxvY2tzXyR7YmxvY2suc2x1Z31gXG5cbiAgICAgICAgICAgIGlmICghdG9wTGV2ZWxBcmdzW2Jsb2NrS2V5XSkge1xuICAgICAgICAgICAgICBjb25zdCB3aXRoQmxvY2s6IFJlc3VsdCA9IHtcbiAgICAgICAgICAgICAgICBjb2x1bW5zOiB7XG4gICAgICAgICAgICAgICAgICBfcGFyZW50SUQ6IGZhbHNlLFxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgb3JkZXJCeTogKHsgX29yZGVyIH0sIHsgYXNjIH0pID0+IFthc2MoX29yZGVyKV0sXG4gICAgICAgICAgICAgICAgd2l0aDoge30sXG4gICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICBjb25zdCB0YWJsZU5hbWUgPSBhZGFwdGVyLnRhYmxlTmFtZU1hcC5nZXQoXG4gICAgICAgICAgICAgICAgYCR7dG9wTGV2ZWxUYWJsZU5hbWV9X2Jsb2Nrc18ke3RvU25ha2VDYXNlKGJsb2NrLnNsdWcpfWAsXG4gICAgICAgICAgICAgIClcblxuICAgICAgICAgICAgICBpZiAoYWRhcHRlci50YWJsZXNbYCR7dGFibGVOYW1lfSR7YWRhcHRlci5sb2NhbGVzU3VmZml4fWBdKSB7XG4gICAgICAgICAgICAgICAgd2l0aEJsb2NrLndpdGguX2xvY2FsZXMgPSBfbG9jYWxlc1xuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgIHRvcExldmVsQXJncy53aXRoW2Jsb2NrS2V5XSA9IHdpdGhCbG9ja1xuXG4gICAgICAgICAgICAgIHRyYXZlcnNlRmllbGRzKHtcbiAgICAgICAgICAgICAgICBfbG9jYWxlcyxcbiAgICAgICAgICAgICAgICBhZGFwdGVyLFxuICAgICAgICAgICAgICAgIGN1cnJlbnRBcmdzOiB3aXRoQmxvY2ssXG4gICAgICAgICAgICAgICAgY3VycmVudFRhYmxlTmFtZTogdGFibGVOYW1lLFxuICAgICAgICAgICAgICAgIGRlcHRoLFxuICAgICAgICAgICAgICAgIGZpZWxkczogYmxvY2suZmllbGRzLFxuICAgICAgICAgICAgICAgIHBhdGg6ICcnLFxuICAgICAgICAgICAgICAgIHRvcExldmVsQXJncyxcbiAgICAgICAgICAgICAgICB0b3BMZXZlbFRhYmxlTmFtZSxcbiAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9KVxuXG4gICAgICAgICAgYnJlYWtcblxuICAgICAgICBjYXNlICdncm91cCc6XG4gICAgICAgICAgdHJhdmVyc2VGaWVsZHMoe1xuICAgICAgICAgICAgX2xvY2FsZXMsXG4gICAgICAgICAgICBhZGFwdGVyLFxuICAgICAgICAgICAgY3VycmVudEFyZ3MsXG4gICAgICAgICAgICBjdXJyZW50VGFibGVOYW1lLFxuICAgICAgICAgICAgZGVwdGgsXG4gICAgICAgICAgICBmaWVsZHM6IGZpZWxkLmZpZWxkcyxcbiAgICAgICAgICAgIHBhdGg6IGAke3BhdGh9JHtmaWVsZC5uYW1lfV9gLFxuICAgICAgICAgICAgdG9wTGV2ZWxBcmdzLFxuICAgICAgICAgICAgdG9wTGV2ZWxUYWJsZU5hbWUsXG4gICAgICAgICAgfSlcblxuICAgICAgICAgIGJyZWFrXG5cbiAgICAgICAgZGVmYXVsdDoge1xuICAgICAgICAgIG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AgICAgICB3aXRoOiB7fSxcbiAgICAgICAgICB9XG5cbiAgICAgICAgICBjb25zdCBhcnJheVRhYmxlTmFtZSA9IGFkYXB0ZXIudGFibGVOYW1lTWFwLmdldChcbiAgICAgICAgICAgIGAke2N1cnJlbnRUYWJsZU5hbWV9XyR7dGFibGVQYXRofSR7dG9TbmFrZUNhc2UoZmllbGQubmFtZSl9YCxcbiAgICAgICAgICApXG5cbiAgICAgICAgICBjb25zdCBhcnJheVRhYmxlTmFtZVdpdGhMb2NhbGVzID0gYCR7YXJyYXlUYWJsZU5hbWV9JHthZGFwdGVyLmxvY2FsZXNTdWZmaXh9YFxuXG4gICAgICAgICAgaWYgKGFkYXB0ZXIudGFibGVzW2FycmF5VGFibGVOYW1lV2l0aExvY2FsZXNdKSB3aXRoQXJyYXkud2l0aC5fbG9jYWxlcyA9IF9sb2NhbGVzXG4gICAgICAgICAgY3VycmVudEFyZ3Mud2l0aFtgJHtwYXRofSR7ZmllbGQubmFtZX1gXSA9IHdpdGhBcnJheVxuXG4gICAgICAgICAgdHJhdmVyc2VGaWVsZHMoe1xuICAgICAgICAgICAgX2xvY2FsZXMsXG4gICAgICAgICAgICBhZGFwdGVyLFxuICAgICAgICAgICAgY3VycmVudEFyZ3M6IHdpdGhBcnJheSxcbiAgICAgICAgICAgIGN1cnJlbnRUYWJsZU5hbWU6IGFycmF5VGFibGVOYW1lLFxuICAgICAgICAgICAgZGVwdGgsXG4gICAgICAgICAgICBmaWVsZHM6IGZpZWxkLmZpZWxkcyxcbiAgICAgICAgICAgIHBhdGg6ICcnLFxuICAgICAgICAgICAgdGFibGVQYXRoOiAnJyxcbiAgICAgICAgICAgIHRvcExldmVsQXJncyxcbiAgICAgICAgICAgIHRvcExldmVsVGFibGVOYW1lLFxuICAgICAgICAgIH0pXG5cbiAgICAgICAgICBicmVha1xuICAgICAgICB9XG5cbiAgICAgICAgY2FzZSAnc2VsZWN0Jzoge1xuICAgICAgICAgIGlmIChmaWVsZC5oYXNNYW55KSB7XG4gICAgICAgICAgICBjb25zdCB3aXRoU2VsZWN0OiBSZXN1bHQgPSB7XG4gICAgICAgICAgICAgIGNvbHVtbnM6IHtcbiAgICAgICAgICAgICAgICBpZDogZmFsc2UsXG4gICAgICAgICAgICAgICAgb3JkZXI6IGZhbHNlLFxuICAgICAgICAgICAgICAgIHBhcmVudDogZmFsc2UsXG4gICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgIG9yZGVyQnk6ICh7IG9yZGVyIH0sIHsgYXNjIH0pID0+IFthc2Mob3JkZXIpXSxcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgY3VycmVudEFyZ3Mud2l0aFtgJHtwYXRofSR7ZmllbGQubmFtZX1gXSA9IHdpdGhTZWxlY3RcbiAgICAgICAgICB9XG5cbiAgICAgICAgICBicmVha1xuICAgICAgICB9XG5cbiAgICAgICAgY2FzZSAnYmxvY2tzJzpcbiAgICAgICAgICBmaWVsZC5ibG9ja3MuZm9yRWFjaCgoYmxvY2spID0+IHtcbiAgICAgICAgICAgIGNvbnN0IGJsb2NrS2V5ID0gYF9ibG9ja3NfJHtibG9jay5zbHVnfWBcblxuICAgICAgICAgICAgaWYgKCF0b3BMZXZlbEFyZ3NbYmxvY2tLZXldKSB7XG4gICAgICAgICAgICAgIGNvbnN0IHdpdGhCbG9jazogUmVzdWx0ID0ge1xuICAgICAgICAgICAgICAgIGNvbHVtbnM6IHtcbiAgICAgICAgICAgICAgICAgIF9wYXJlbnRJRDogZmFsc2UsXG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICBvcmRlckJ5OiAoeyBfb3JkZXIgfSwgeyBhc2MgfSkgPT4gW2FzYyhfb3JkZXIpXSxcbiAgICAgICAgICAgICAgICB3aXRoOiB7fSxcbiAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgIGNvbnN0IHRhYmxlTmFtZSA9IGFkYXB0ZXIudGFibGVOYW1lTWFwLmdldChcbiAgICAgICAgICAgICAgICBgJHt0b3BMZXZlbFRhYmxlTmFtZX1fYmxvY2tzXyR7dG9TbmFrZUNhc2UoYmxvY2suc2x1Zyl9YCxcbiAgICAgICAgICAgICAgKVxuXG4gICAgICAgICAgICAgIGlmIChhZGFwdGVyLnRhYmxlc1tgJHt0YWJsZU5hbWV9JHthZGFwdGVyLmxvY2FsZXNTdWZmaXh9YF0pIHtcbiAgICAgICAgICAgICAgICB3aXRoQmxvY2sud2l0aC5fbG9jYWxlcyA9IF9sb2NhbGVzXG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgdG9wTGV2ZWxBcmdzLndpdGhbYmxvY2tLZXldID0gd2l0aEJsb2NrXG5cbiAgICAgICAgICAgICAgdHJhdmVyc2VGaWVsZHMoe1xuICAgICAgICAgICAgICAgIF9sb2NhbGVzLFxuICAgICAgICAgICAgICAgIGFkYXB0ZXIsXG4gICAgICAgICAgICAgICAgY3VycmVudEFyZ3M6IHdpdGhCbG9jayxcbiAgICAgICAgICAgICAgICBjdXJyZW50VGFibGVOYW1lOiB0YWJsZU5hbWUsXG4gICAgICAgICAgICAgICAgZGVwdGgsXG4gICAgICAgICAgICAgICAgdGFibGVQYXRoOiAnJyxcbiAgICAgICAgICAgICAgICBmaWVsZHM6IGJsb2NrLmZpZWxkcyxcbiAgICAgICAgICAgICAgICBwYXRoOiAnJyxcbiAgICAgICAgICAgICAgICB0b3BMZXZlbEFyZ3MsXG4gICAgICAgICAgICAgICAgdG9wTGV2ZWxUYWJsZU5hbWUsXG4gICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICB9XG4gICAgICAgICAgfSlcblxuICAgICAgICAgIGJyZWFrXG5cbiAgICAgICAgY2FzZSAnZ3JvdXAnOlxuICAgICAgICAgIHRyYXZlcnNlRmllbGRzKHtcbiAgICAgICAgICAgIF9sb2NhbGVzLFxuICAgICAgICAgICAgYWRhcHRlcixcbiAgICAgICAgICAgIGN1cnJlbnRBcmdzLFxuICAgICAgICAgICAgY3VycmVudFRhYmxlTmFtZSxc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BQUVBLEtBQUssRUFBRUssTUFBTU0sSUFBSSxDQUFDLENBQUMsQ0FBQzt3QkFDN0JUO3dCQUNBQztvQkFDRjtvQkFFQTtnQkFFRjtvQkFBUzt3QkFDUDtvQkFDRjtZQUNGO1FBQ0Y7SUFDRjtJQUVBLE9BQU9EO0FBQ1QifQ==
package/dist/migrate.js CHANGED
@@ -109,7 +109,8 @@ async function runMigrationFile(payload, migration, batch) {
109
109
  err,
110
110
  msg: (0, _parseError.parseError)(err, `Error running migration ${migration.name}`)
111
111
  });
112
+ process.exit(1);
112
113
  }
113
114
  }
114
115
 
115
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9taWdyYXRlLnRzIl0sInNvdXJjZXNDb250ZW50IjpbIi8qIGVzbGludC1kaXNhYmxlIG5vLXJlc3RyaWN0ZWQtc3ludGF4LCBuby1hd2FpdC1pbi1sb29wICovXG5pbXBvcnQgdHlwZSB7IFBheWxvYWQgfSBmcm9tICdwYXlsb2FkJ1xuaW1wb3J0IHR5cGUgeyBNaWdyYXRpb24gfSBmcm9tICdwYXlsb2FkL2RhdGFiYXNlJ1xuaW1wb3J0IHR5cGUgeyBQYXlsb2FkUmVxdWVzdCB9IGZyb20gJ3BheWxvYWQvZGlzdC9leHByZXNzL3R5cGVzJ1xuXG5pbXBvcnQgeyByZWFkTWlncmF0aW9uRmlsZXMgfSBmcm9tICdwYXlsb2FkL2RhdGFiYXNlJ1xuaW1wb3J0IHsgY29tbWl0VHJhbnNhY3Rpb24gfSBmcm9tICdwYXlsb2FkL2Rpc3QvdXRpbGl0aWVzL2NvbW1pdFRyYW5zYWN0aW9uJ1xuaW1wb3J0IHsgaW5pdFRyYW5zYWN0aW9uIH0gZnJvbSAncGF5bG9hZC9kaXN0L3V0aWxpdGllcy9pbml0VHJhbnNhY3Rpb24nXG5pbXBvcnQgeyBraWxsVHJhbnNhY3Rpb24gfSBmcm9tICdwYXlsb2FkL2Rp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FZSxLQUFLQyxHQUFHLEtBQUtGLE1BQU0sR0FBRyxDQUFDO1FBQUM7UUFDcEYsTUFBTXRDLFFBQVFnRCxNQUFNLENBQUM7WUFDbkJsQyxZQUFZO1lBQ1ptQyxNQUFNO2dCQUNKekIsTUFBTVEsVUFBVVIsSUFBSTtnQkFDcEJOO2dCQUNBMkIsUUFBUUQ7WUFDVjtZQUNBSDtRQUNGO1FBQ0EsTUFBTVMsSUFBQUEsb0NBQWlCLEVBQUNUO0lBQzFCLEVBQUUsT0FBT1UsS0FBYztRQUNyQixNQUFNQyxJQUFBQSxnQ0FBZSxFQUFDWDtRQUN0QnpDLFFBQVFJLE1BQU0sQ0FBQ2lELEtBQUssQ0FBQztZQUNuQkY7WUFDQTdDLEtBQUtnRCxJQUFBQSxzQkFBVSxFQUFDSCxLQUFLLENBQUMsd0JBQXdCLEVBQUVuQixVQUFVUixJQUFJLENBQUMsQ0FBQztRQUNsRTtRQUNBSyxRQUFRQyxJQUFJLENBQUM7SUFDZjtBQUNGIn0=
@@ -1 +1 @@
1
- {"version":3,"file":"migrateFresh.d.ts","sourceRoot":"","sources":["../src/migrateFresh.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAI9C;;GAEG;AACH,wBAAsB,YAAY,CAChC,IAAI,EAAE,eAAe,EACrB,EAAE,kBAA0B,EAAE;;CAAA,GAC7B,OAAO,CAAC,IAAI,CAAC,CAgEf"}
1
+ {"version":3,"file":"migrateFresh.d.ts","sourceRoot":"","sources":["../src/migrateFresh.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAI9C;;GAEG;AACH,wBAAsB,YAAY,CAChC,IAAI,EAAE,eAAe,EACrB,EAAE,kBAA0B,EAAE;;CAAA,GAC7B,OAAO,CAAC,IAAI,CAAC,CAiEf"}