use direct insert, add schema check

This commit is contained in:
Andrew Zhu
2019-02-12 13:51:39 -08:00
parent cb71f6d380
commit 4d642b56bb
2 changed files with 352 additions and 123 deletions

View File

@@ -76,7 +76,6 @@ Router.map(function () {
const listId = this.params.listId;
Meteor.call("insertSpells", key, charId, listId, spells, (err, res) => {
if (err) {
console.log(err);
this.response.writeHead(err.error, err.reason);
this.response.end(err.details);
} else {