@budibase/backend-core 2.29.26 → 2.29.27
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/index.js +4 -1
- package/dist/index.js.map +2 -2
- package/dist/index.js.meta.json +1 -1
- package/dist/package.json +4 -4
- package/dist/plugins.js.meta.json +1 -1
- package/dist/src/db/couch/DatabaseImpl.js +4 -1
- package/dist/src/db/couch/DatabaseImpl.js.map +1 -1
- package/package.json +4 -4
- package/src/db/couch/DatabaseImpl.ts +5 -1
- package/src/db/couch/tests/DatabaseImpl.spec.ts +118 -0
package/dist/index.js
CHANGED
|
@@ -59799,8 +59799,11 @@ var DatabaseImpl = class _DatabaseImpl {
|
|
|
59799
59799
|
});
|
|
59800
59800
|
}
|
|
59801
59801
|
async bulkDocs(documents) {
|
|
59802
|
+
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
59802
59803
|
return this.performCall((db) => {
|
|
59803
|
-
return () => db.bulk({
|
|
59804
|
+
return () => db.bulk({
|
|
59805
|
+
docs: documents.map((d) => ({ createdAt: now, ...d, updatedAt: now }))
|
|
59806
|
+
});
|
|
59804
59807
|
});
|
|
59805
59808
|
}
|
|
59806
59809
|
async allDocs(params2) {
|