cleaning up more models and making sure that id is mongodb bson

This commit is contained in:
talksik
2022-06-10 06:35:59 -05:00
parent 16d409a1dd
commit 2ffd340d2f
3 changed files with 5 additions and 15 deletions
+2 -1
View File
@@ -1,3 +1,4 @@
import { ObjectId } from 'mongodb';
import User from './user.model';
export default class Conversation {
@@ -23,7 +24,7 @@ export default class Conversation {
public lastUpdatedDate = new Date(),
public createdDate = new Date(),
public id?: string,
public id?: ObjectId,
) {}
}