tango-api-schema 2.0.106 → 2.0.107

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-api-schema",
3
- "version": "2.0.106",
3
+ "version": "2.0.107",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -4,11 +4,9 @@
4
4
 
5
5
  // NPM Modules
6
6
  import mongoose from 'mongoose';
7
- const module = await import(process.env.ENV_PATH )
8
- const env = module.default
9
7
 
10
8
  // Schema
11
- const auditUserAssign = new mongoose.Schema( {
9
+ const assignAudit = new mongoose.Schema( {
12
10
  fileId: {
13
11
  type: String,
14
12
  },
@@ -43,9 +41,9 @@ const auditUserAssign = new mongoose.Schema( {
43
41
  timestamps: true,
44
42
  strict: true,
45
43
  versionKey: false,
46
- expires: env.dataModel.expires.assignAudit,
44
+ expires: '6h',
47
45
  },
48
46
  );
49
47
 
50
48
 
51
- export default mongoose.model( 'assignAudit', auditUserAssign, 'assignAudit' );
49
+ export default mongoose.model( 'assignAudit', assignAudit, 'assignAudit' );