@velocitycareerlabs/migrations 1.24.0-dev-build.155dd1082 → 1.24.0-dev-build.1b463fc4a

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": "@velocitycareerlabs/migrations",
3
- "version": "1.24.0-dev-build.155dd1082",
3
+ "version": "1.24.0-dev-build.1b463fc4a",
4
4
  "description": "package for functions needed to support migrations",
5
5
  "repository": "https://github.com/velocitycareerlabs/packages",
6
6
  "main": "index.js",
@@ -30,5 +30,5 @@
30
30
  "jest": "29.7.0",
31
31
  "prettier": "2.8.8"
32
32
  },
33
- "gitHead": "3a0eb8c7a4a6babd389ccd36c8905580fd72b63b"
33
+ "gitHead": "d985688796078a59f8a04b5650cad414ad48de35"
34
34
  }
package/src/migrations.js CHANGED
@@ -94,7 +94,7 @@ const buildWrites = async (
94
94
  const buildUpdatesFromCursor = async (buildFunc, cursor) => {
95
95
  const writes = [];
96
96
  for await (const doc of cursor) {
97
- const write = buildFunc(doc);
97
+ const write = await buildFunc(doc);
98
98
  if (write != null) {
99
99
  writes.push(write);
100
100
  }