tabletcommand-backend-models 5.18.8 → 5.18.9
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.
|
@@ -51,6 +51,10 @@ async function AssignmentModule(mongoose) {
|
|
|
51
51
|
type: String,
|
|
52
52
|
default: "",
|
|
53
53
|
},
|
|
54
|
+
full_description: {
|
|
55
|
+
type: String,
|
|
56
|
+
default: "",
|
|
57
|
+
},
|
|
54
58
|
}, {
|
|
55
59
|
collection: "massive_assignment",
|
|
56
60
|
});
|
|
@@ -59,13 +63,9 @@ async function AssignmentModule(mongoose) {
|
|
|
59
63
|
virtuals: true,
|
|
60
64
|
versionKey: false,
|
|
61
65
|
transform(doc, ret) {
|
|
62
|
-
ret.id = ret._id;
|
|
66
|
+
ret.id = ret._id.toString();
|
|
63
67
|
},
|
|
64
68
|
});
|
|
65
|
-
modelSchema.virtual("id").get(function () {
|
|
66
|
-
// tslint:disable-next-line: no-unsafe-any
|
|
67
|
-
return this._id.toString();
|
|
68
|
-
});
|
|
69
69
|
return (0, helpers_1.createModel)(mongoose, "Assignment", modelSchema);
|
|
70
70
|
}
|
|
71
71
|
exports.AssignmentModule = AssignmentModule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assignment.js","sourceRoot":"","sources":["../../src/models/assignment.ts"],"names":[],"mappings":";;;AAAA,6BAA6B;AAE7B,
|
|
1
|
+
{"version":3,"file":"assignment.js","sourceRoot":"","sources":["../../src/models/assignment.ts"],"names":[],"mappings":";;;AAAA,6BAA6B;AAE7B,wCAWoB;AAEb,KAAK,UAAU,gBAAgB,CAAC,QAAwB;IAC7D,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,QAAQ,CAAC;IAEnC,MAAM,WAAW,GAAG,IAAA,sBAAY,EAAC,MAAM,EAAE;QACvC,GAAG,EAAE;YACH,IAAI,EAAE,KAAK,CAAC,QAAQ;YACpB,IAAI,EAAE,IAAI;SACX;QACD,QAAQ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C;AAlED,4CAkEC;AAID,kBAAe,gBAAoF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assignment.d.ts","sourceRoot":"","sources":["../../src/models/assignment.ts"],"names":[],"mappings":";AAEA,OAAO,EAKL,8BAA8B,EAE9B,+BAA+B,
|
|
1
|
+
{"version":3,"file":"assignment.d.ts","sourceRoot":"","sources":["../../src/models/assignment.ts"],"names":[],"mappings":";AAEA,OAAO,EAKL,8BAA8B,EAE9B,+BAA+B,EAC/B,cAAc,EACd,sBAAsB,EAEvB,MAAM,YAAY,CAAC;AAEpB,wBAAsB,gBAAgB,CAAC,QAAQ,EAAE,cAAc;;;;;;;;;;;;;;;;GAkE9D;AAED,MAAM,WAAW,UAAW,SAAQ,8BAA8B,CAAC,OAAO,gBAAgB,CAAC;CAAI;AAC/F,MAAM,WAAW,eAAgB,SAAQ,+BAA+B,CAAC,UAAU,CAAC;CAAI;;AACxF,wBAAoG"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tabletcommand-backend-models",
|
|
3
|
-
"version": "5.18.
|
|
3
|
+
"version": "5.18.9",
|
|
4
4
|
"description": "Tablet Command Backend Models",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "gulp",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"yargs-parser": ">=21.0.1"
|
|
48
48
|
},
|
|
49
49
|
"typeCoverage": {
|
|
50
|
-
"atLeast": 99.
|
|
50
|
+
"atLeast": 99.79,
|
|
51
51
|
"ignoreFiles": [
|
|
52
52
|
"definitions/**/*.ts",
|
|
53
53
|
"src/test/**/*.ts"
|
package/src/models/assignment.ts
CHANGED
|
@@ -8,7 +8,6 @@ import {
|
|
|
8
8
|
ItemTypeFromTypeSchemaFunction,
|
|
9
9
|
ModelFromSchema,
|
|
10
10
|
ModelTypeFromTypeSchemaFunction,
|
|
11
|
-
MongooseDocument,
|
|
12
11
|
MongooseModule,
|
|
13
12
|
ReplaceModelReturnType,
|
|
14
13
|
retrieveCurrentUnixTime,
|
|
@@ -63,6 +62,10 @@ export async function AssignmentModule(mongoose: MongooseModule) {
|
|
|
63
62
|
type: String,
|
|
64
63
|
default: "",
|
|
65
64
|
},
|
|
65
|
+
full_description: {
|
|
66
|
+
type: String,
|
|
67
|
+
default: "",
|
|
68
|
+
},
|
|
66
69
|
}, {
|
|
67
70
|
collection: "massive_assignment",
|
|
68
71
|
});
|
|
@@ -71,14 +74,9 @@ export async function AssignmentModule(mongoose: MongooseModule) {
|
|
|
71
74
|
virtuals: true,
|
|
72
75
|
versionKey: false,
|
|
73
76
|
transform(doc: ModelFromSchema<typeof modelSchema>, ret: DocumentTypeFromSchema<typeof modelSchema>) {
|
|
74
|
-
ret.id = ret._id;
|
|
77
|
+
ret.id = ret._id.toString();
|
|
75
78
|
},
|
|
76
79
|
});
|
|
77
|
-
|
|
78
|
-
modelSchema.virtual("id").get(function(this: MongooseDocument) {
|
|
79
|
-
// tslint:disable-next-line: no-unsafe-any
|
|
80
|
-
return this._id.toString();
|
|
81
|
-
});
|
|
82
80
|
|
|
83
81
|
return createModel(mongoose, "Assignment", modelSchema);
|
|
84
82
|
}
|