We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9004f35 commit fd8270fCopy full SHA for fd8270f
nextstep-backend/src/models/resume_model.ts
@@ -25,13 +25,12 @@ const ResumeSchema = new Schema({
25
ResumeSchema.set('toJSON', {
26
transform: (doc, ret): ResumeData => {
27
return {
28
- id: ret._id,
+ id: ret._id.toString(),
29
owner: ret.owner._id.toString(),
30
- createdAt: ret.createdAt,
31
- updatedAt: ret.updatedAt,
32
- version: ret.version,
33
- rawContentLink: ret.rawContentLink,
34
- parsedData: ret.parsedData
+ createdAt: ret.createdAt as any,
+ version: ret.version as any,
+ rawContentLink: ret.rawContentLink as any,
+ parsedData: ret.parsedData as any
35
};
36
}
37
});
0 commit comments