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
+3 -2
View File
@@ -1,7 +1,7 @@
import { ObjectId } from 'mongodb';
export interface IContent {
id?: string;
id?: ObjectId;
creatorUserId: string;
contentUrl: string; // remote resource of file/media
@@ -22,7 +22,8 @@ export class ContentBlock implements IContent {
public createdDate = new Date(),
public id?: string,
public metadata?: object,
public id?: ObjectId,
) {}
}