vimcord 1.0.26 → 1.0.28

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
@@ -2309,7 +2309,7 @@ async function retryExponentialBackoff(fn, maxRetries = 3, retryDelay = 1e3) {
2309
2309
  }
2310
2310
 
2311
2311
  // package.json
2312
- var version = "1.0.26";
2312
+ var version = "1.0.27";
2313
2313
 
2314
2314
  // src/client.ts
2315
2315
  var import_node_crypto3 = require("crypto");
@@ -2855,9 +2855,9 @@ var MongoSchemaBuilder = class _MongoSchemaBuilder {
2855
2855
  });
2856
2856
  }
2857
2857
  async useTransaction(fn) {
2858
- return await this.execute(async () => {
2858
+ return await this.execute(async (model) => {
2859
2859
  if (!this.db) throw new Error("No database instance found");
2860
- return await this.db.useTransaction(fn);
2860
+ return await this.db.useTransaction((session) => fn(session, model));
2861
2861
  });
2862
2862
  }
2863
2863
  async createHexId(bytes, path2, maxRetries = 10) {