@duvdu-v1/duvdu 1.1.321 → 1.1.323

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.
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.FundedTransaction = exports.FundedTransactionStatus = void 0;
4
4
  const mongoose_1 = require("mongoose");
5
+ const all_contracts_model_1 = require("./all-contracts.model");
5
6
  const model_names_1 = require("../types/model-names");
6
7
  var FundedTransactionStatus;
7
8
  (function (FundedTransactionStatus) {
@@ -17,5 +18,5 @@ exports.FundedTransaction = (0, mongoose_1.model)(model_names_1.MODELS.fundedTra
17
18
  contract: { type: mongoose_1.Schema.Types.ObjectId },
18
19
  status: { type: String, default: FundedTransactionStatus.PENDING },
19
20
  withdrawMethod: { type: mongoose_1.Schema.Types.ObjectId, ref: model_names_1.MODELS.withdrawMethod },
20
- ticketNumber: { type: String, default: null },
21
+ ticketNumber: { type: String, default: all_contracts_model_1.generateTicketNumber, unique: true, sparse: true },
21
22
  }, { timestamps: true, collection: model_names_1.MODELS.fundedTransaction }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duvdu-v1/duvdu",
3
- "version": "1.1.321",
3
+ "version": "1.1.323",
4
4
  "main": "./build/index.js",
5
5
  "types": "./build/index.d.ts",
6
6
  "files": [