cleaning up api and adding in conversation create route
This commit is contained in:
@@ -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) {}
|
||||
}
|
||||
Reference in New Issue
Block a user