Created
March 27, 2017 03:28
-
-
Save tristanpendergrass/2c0a04fe3b018098d03b5d3db12d0cf8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| // the error that happens when running the server: | |
| > node server.js | |
| /Users/tristanpendergrass/dev/project/server/models/trade.model.js:2 | |
| this.ign = data.ign; | |
| ^ | |
| // trade.model.js | |
| module.exports = new function Trade(data) { | |
| this.ign = data.ign; | |
| } | |
| // the only line in the whole project referencing the trade model | |
| const Trade = require('../models/trade.model.js'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment