let models = require('../models') let methods = {} methods.addUser = (userInfo) => { return new Promise((resolve, reject) => { models.User.create(userInfo).then((user) => { console.log(user); resolve(user) }).catch(err => { reject(err) }) }) } module.exports = methods