jit
Mongo error: Date set by default in railway server is same within a time frame
this is my collection schema
@Prop({
type: String,
required: true,
default: new Date().toISOString(),
})
dateAdded: string;
and this is how the create functionality is implemented
const createConversation: CreateConversationDto = {
conversationType: 'GhlConversation',
body: message,
messageType: payload.messageType,
resourceId: payload.locationId,
direction: direction,
channelDetails: {
contactId: payload.contactId,
}
}
const newConversation = new this.conversationModel(createConversation);
return await newConversation.save();
10 replies