-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #369 from linzjs/node-upgrade
upgrade node to the latest lts version
- Loading branch information
Showing
144 changed files
with
5,800 additions
and
6,581 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
"use strict"; | ||
'use strict'; | ||
|
||
const linz = require("linz"); | ||
const linz = require('linz'); | ||
const mtOrgSchema = require('./schema'); | ||
|
||
// add the formtools plugin | ||
mtOrgSchema.plugin(linz.formtools.plugins.document, require('./formtools')); | ||
|
||
mtOrgSchema.pre("save", function(next, callback, req) { | ||
if (req && req.user) { | ||
this.modifiedBy = req.user.username; | ||
mtOrgSchema.pre('save', function(next) { | ||
if (this.user) { | ||
this.modifiedBy = this.user.username; | ||
} | ||
|
||
return next(callback, req); | ||
return next(); | ||
}); | ||
|
||
module.exports = linz.mongoose.model("mtOrg", mtOrgSchema); | ||
module.exports = linz.mongoose.model('mtOrg', mtOrgSchema); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.