diff options
author | Raphael <raphaelkabo@gmail.com> | 2020-02-06 11:11:45 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-06 11:11:45 +0000 |
commit | a594946b13c15fda6d49f0651ffdf2332a3793cd (patch) | |
tree | 8e690cf7a80635685b258eb6a4b2a1ca3f79ab36 /models/Log.js | |
parent | 111406040ec9f7f48b28077c8eea95a792b14cc7 (diff) | |
parent | a390b02416777b045f03a286bfbb02ac369571e6 (diff) |
Merge pull request #37 from dariusk/whitespace
Normalize whitespace
Diffstat (limited to 'models/Log.js')
-rwxr-xr-x | models/Log.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/models/Log.js b/models/Log.js index 6ed474b..95a3ab3 100755 --- a/models/Log.js +++ b/models/Log.js @@ -1,26 +1,26 @@ const mongoose = require('mongoose'); const LogSchema = new mongoose.Schema({ - status: { + status: { type: String, trim: true, - required: true + required: true }, - process: { + process: { type: String, trim: true, - required: true + required: true }, message: { type: String, trim: true, - required: true + required: true }, - timestamp: { + timestamp: { type: Date, trim: true, - required: true + required: true } }); -module.exports = mongoose.model('Log', LogSchema);
\ No newline at end of file +module.exports = mongoose.model('Log', LogSchema); |