Skip to content

Commit

Permalink
v2.0.0 Move .errors under .status.errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Roy van de Water committed Apr 25, 2017
1 parent d52b168 commit 097af96
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "slurry-core",
"version": "1.15.4",
"version": "2.0.0",
"description": "Put some description here",
"keywords": [],
"homepage": "https://github.com/octoblu/slurry-core",
Expand Down
2 changes: 1 addition & 1 deletion src/configure-handler.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ class ConfigureHandler
return callback() unless statusDevice?
update =
$push:
errors:
'status.errors':
$each: [
date: moment.utc().format()
code: error.code ? 500
Expand Down
2 changes: 1 addition & 1 deletion src/services/configure-service.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class ConfigureService
return callback(error) unless statusDevice?
update =
$push:
errors:
'status.errors':
$each: [
date: moment.utc().format()
code: error.code ? 500
Expand Down
3 changes: 2 additions & 1 deletion src/services/messages-service.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
_ = require 'lodash'
Encryption = require 'meshblu-encryption'
MeshbluHTTP = require 'meshblu-http'
moment = require 'moment'

debug = require('debug')('slurry-core:messages-service')

Expand Down Expand Up @@ -61,7 +62,7 @@ class MessagesService
return callback() unless statusDevice?
update =
$push:
errors:
'status.errors':
$each: [
senderUuid: senderUuid
date: moment.utc().format()
Expand Down

0 comments on commit 097af96

Please sign in to comment.