Skip to content

Commit

Permalink
fixed timestamp to be of Number type
Browse files Browse the repository at this point in the history
  • Loading branch information
jhonatancruz committed Apr 14, 2019
1 parent 9ecc4b8 commit 9aae82a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/chat_model.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var Schema = mongoose.Schema;
var chatDataSchema= new Schema({
// Initial info
users:[{email:String}],
messages:[{message:String, byWho: String, timestamp:Date}],
messages:[{message:String, byWho: String, timestamp:Number}],
dateChatCreated: Number,
dateChatCreatedComputed: String,
dateChatStartedBy: String,
Expand Down

0 comments on commit 9aae82a

Please sign in to comment.