cleaning up api and adding in conversation create route

This commit is contained in:
talksik
2022-06-11 08:28:43 -05:00
parent b37a25fa82
commit 92aea9de25
9 changed files with 158 additions and 103 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ export default class Conversation {
public lastUpdatedDate = new Date(),
public createdDate = new Date(),
public id?: ObjectId,
public id: ObjectId = new ObjectId(),
) {}
}
@@ -0,0 +1,5 @@
import Conversation from '@nirvana/core/models/conversation.model';
export default class CreateConversationRequest {
constructor(public conversation: Conversation) {}
}
@@ -0,0 +1,5 @@
import { ObjectId } from 'mongodb';
export default class CreateConversationResponse {
constructor(public conversationId: ObjectId) {}
}