@kipicore/dbcore 1.1.393 → 1.1.395

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.
@@ -36,8 +36,7 @@ const uploadFileToS3 = async (localFilePath, s3Key, s3Bucket = env_1.ENV_VARIABL
36
36
  };
37
37
  exports.uploadFileToS3 = uploadFileToS3;
38
38
  const getPresignedUrl = async (bucket, fileStorage, expiresIn = 60 * 60 * 24) => {
39
- if (fileStorage.filePath)
40
- return fileStorage.filePath;
39
+ // if (fileStorage.filePath) return fileStorage.filePath;
41
40
  const s3 = await configs_1.awsClient.s3();
42
41
  expiresIn = await configs_1.awsClient.expiry();
43
42
  const s3Key = `${fileStorage.storagePath}/${fileStorage.storageFileName}`;
@@ -13,5 +13,4 @@ export interface ICoinPurchaseOfferModelAttributes extends IDefaultAttributes {
13
13
  gstCharge: number;
14
14
  payableAmount: number;
15
15
  gstPercentage: number;
16
- validityInDays: number;
17
16
  }
@@ -78,7 +78,7 @@ CloudStorageModel.init({
78
78
  defaultValue: app_1.COMMAN_STATUS.ACTIVE,
79
79
  },
80
80
  validityInDays: {
81
- type: sequelize_1.DataTypes.NUMBER,
81
+ type: sequelize_1.DataTypes.INTEGER,
82
82
  field: 'validity_in_days',
83
83
  allowNull: false,
84
84
  },
@@ -83,11 +83,6 @@ CoinPurchaseOfferModel.init({
83
83
  field: 'payable_amount',
84
84
  allowNull: false,
85
85
  },
86
- validityInDays: {
87
- type: sequelize_1.DataTypes.NUMBER,
88
- field: 'validity_in_days',
89
- allowNull: false,
90
- },
91
86
  }, {
92
87
  modelName: 'CoinPurchaseOfferModel',
93
88
  tableName: 'coin_purchase_offers',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kipicore/dbcore",
3
- "version": "1.1.393",
3
+ "version": "1.1.395",
4
4
  "description": "Reusable DB core package with Postgres, MongoDB, models, services, interfaces, and types",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",