Skip to content

Commit fd8270f

Browse files
committed
Hotfix Build In Resume Model
1 parent 9004f35 commit fd8270f

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

nextstep-backend/src/models/resume_model.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,12 @@ const ResumeSchema = new Schema({
2525
ResumeSchema.set('toJSON', {
2626
transform: (doc, ret): ResumeData => {
2727
return {
28-
id: ret._id,
28+
id: ret._id.toString(),
2929
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
30+
createdAt: ret.createdAt as any,
31+
version: ret.version as any,
32+
rawContentLink: ret.rawContentLink as any,
33+
parsedData: ret.parsedData as any
3534
};
3635
}
3736
});

0 commit comments

Comments
 (0)