@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 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({ docs: documents });
59804
+ return () => db.bulk({
59805
+ docs: documents.map((d) => ({ createdAt: now, ...d, updatedAt: now }))
59806
+ });
59804
59807
  });
59805
59808
  }
59806
59809
  async allDocs(params2) {