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
|
@@ -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
|
|
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:
|
|
44
|
+
expires: '6h',
|
|
47
45
|
},
|
|
48
46
|
);
|
|
49
47
|
|
|
50
48
|
|
|
51
|
-
export default mongoose.model( 'assignAudit',
|
|
49
|
+
export default mongoose.model( 'assignAudit', assignAudit, 'assignAudit' );
|