Closed dov-yih closed 5 years ago
Optimization
abstruct the User desconstruction to a helper function.
Or Sequelize had a api for this?
Here the issue: https://github.com/sequelize/sequelize/issues/10052 And this: https://github.com/sequelize/sequelize/issues/9055
Office API: Model.toJSON(): http://docs.sequelizejs.com/class/lib/model.js~Model.html#instance-method-toJSON Model.get({plain: true}): http://docs.sequelizejs.com/class/lib/model.js~Model.html#instance-method-get
DOCS: https://github.com/demopark/sequelize-docs-Zh-CN/blob/master/models-definition.md
May need common Error Modal components.
Closed! it will fix in next time.