完成备忘录的删除

This commit is contained in:
HelloWorld 2020-04-08 11:22:18 +08:00
parent b66e8d8a83
commit 0e68de24aa
1 changed files with 1 additions and 0 deletions

View File

@ -577,6 +577,7 @@ module.exports = class extends Base {
if (params.tagId) {
where.tagId = params.tagId;
}
where.userId = this.ctx.state.user.id;
let data = await this.model('notes').where(where).order("createdAt DESC").page(this.get('page'), this.get('pageSize')).countSelect();
this.json({ code: 0, data })
} catch (error) {