@bitcobblers/wod-wiki-storage 0.59.2243 → 0.59.2245

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.cjs CHANGED
@@ -880,7 +880,7 @@ var InMemoryStore = class {
880
880
  }
881
881
  async put(value, _key) {
882
882
  if (!this.mutable) throw new Error("read-only store");
883
- if (this.commit) return this.commit((store) => store.put(value));
883
+ if (this.commit) return await this.commit((store) => store.put(value));
884
884
  const userId = this.getUserId?.();
885
885
  const stored = userId ? stampUserOwned(this.name, value, userId) : value;
886
886
  validateStorageRow(this.name, stored);
@@ -902,7 +902,7 @@ var InMemoryStore = class {
902
902
  return key;
903
903
  }
904
904
  async putMany(values, keys) {
905
- if (this.commit) return this.commit((store) => store.putMany(values, keys));
905
+ if (this.commit) return await this.commit((store) => store.putMany(values, keys));
906
906
  if (keys && keys.length !== values.length) throw new Error("putMany key count mismatch");
907
907
  const out = [];
908
908
  for (let i = 0; i < values.length; i++) out.push(await this.put(values[i], keys?.[i]));