Skip to content

Commit

Permalink
Merge pull request #113 from nzzdev/release-4.0.1
Browse files Browse the repository at this point in the history
Release 4.0.1
  • Loading branch information
benib committed Apr 7, 2018
2 parents af66edf + 2882095 commit 407c79b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nzz/q-server",
"version": "4.0.0",
"version": "4.0.1",
"description": "",
"main": "index.js",
"scripts": {
Expand Down
5 changes: 5 additions & 0 deletions plugins/core/base/routes/item.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@ module.exports = {
doc.createdBy = request.auth.credentials.name;
docDiff.createdBy = doc.createdBy;

doc.updatedDate = now.toISOString();
docDiff.updatedDate = doc.updatedDate;
doc.updatedBy = request.auth.credentials.name;
docDiff.updatedBy = doc.updatedBy;

return new Promise((resolve, reject) => {
request.server.app.db.insert(request.payload, (err, res) => {
if (err) {
Expand Down

0 comments on commit 407c79b

Please sign in to comment.