Skip to content

Instantly share code, notes, and snippets.

@tristanpendergrass
Created March 27, 2017 03:28
Show Gist options
  • Select an option

  • Save tristanpendergrass/2c0a04fe3b018098d03b5d3db12d0cf8 to your computer and use it in GitHub Desktop.

Select an option

Save tristanpendergrass/2c0a04fe3b018098d03b5d3db12d0cf8 to your computer and use it in GitHub Desktop.
// 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