@ccci/micro-server 1.0.143 → 1.0.145

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
@@ -281740,10 +281740,10 @@ class UploaderS3 {
281740
281740
  }));
281741
281741
  Logger.info("File uploaded successfully:", { key, response: response4 });
281742
281742
  const metadata = {
281743
- Bucket: "chizmis-attachments",
281743
+ Bucket: bucketName,
281744
281744
  Key: key,
281745
281745
  Etag: response4.ETag,
281746
- Location: `https://chizmis-attachments.${process.env.S3_REGION_CODE}.cdn.${process.env.S3_DOMAIN}.com/${key}`,
281746
+ Location: `https://${bucketName}.${process.env.S3_REGION_CODE}.cdn.${process.env.S3_DOMAIN}.com/${key}`,
281747
281747
  MimeType: contentType
281748
281748
  };
281749
281749
  return metadata;
@@ -282397,7 +282397,9 @@ class BaseModel extends Model {
282397
282397
  },
282398
282398
  isActive: {
282399
282399
  type: new DataTypes.BOOLEAN,
282400
- comment: "Record active indicator"
282400
+ comment: "Record active indicator",
282401
+ allowNull: false,
282402
+ defaultValue: true
282401
282403
  }
282402
282404
  } : null;
282403
282405
  }
@@ -19,6 +19,8 @@ export default class BaseModel extends Model implements IBaseModel {
19
19
  isActive: {
20
20
  type: DataTypes.AbstractDataType;
21
21
  comment: string;
22
+ allowNull: boolean;
23
+ defaultValue: boolean;
22
24
  };
23
25
  } | null;
24
26
  static getCommonAssociations(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccci/micro-server",
3
- "version": "1.0.143",
3
+ "version": "1.0.145",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",