export default class extends think.controlle.base { async updateAction(){ let model = this.model('user'); let affectedRows = await model.where({name: 'thinkjs'}).update({email: 'admin@thinkjs.org'}); } }
export default class extends think.controlle.base { async updateAction(){ let model = this.model('user'); let affectedRows = await model.where({name: 'thinkjs'}).update({email: 'admin@thinkjs.org'}); } }