评论不修改操作时间
This commit is contained in:
1 parent
6aadef58bf
commit
3897c650cc
1 file changed
+2
-2
+2
-2
@@ -601,7 +601,7 @@ class TaskService extends Service {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async updateComment() {
|
async updateComment() {
|
||||||
const { jianghuKnex } = this.app;
|
const { jianghuKnex, knex } = this.app;
|
||||||
const { userId, username } = this.ctx.userInfo;
|
const { userId, username } = this.ctx.userInfo;
|
||||||
const { actionData, where } = this.ctx.request.body.appData;
|
const { actionData, where } = this.ctx.request.body.appData;
|
||||||
const { taskCommentList, taskInitUser, taskEditUserList } = actionData;
|
const { taskCommentList, taskInitUser, taskEditUserList } = actionData;
|
||||||
@@ -624,7 +624,7 @@ class TaskService extends Service {
|
|||||||
})
|
})
|
||||||
|
|
||||||
await jianghuKnex.transaction(async trx => {
|
await jianghuKnex.transaction(async trx => {
|
||||||
await trx("task", this.ctx).where(where).jhUpdate({ taskCommentList: JSON.stringify(taskCommentList) });
|
await knex("task").where(where).update({ taskCommentList: JSON.stringify(taskCommentList) });
|
||||||
if (noticeInsertData.length > 0) await trx("notice_push", this.ctx).jhInsert(noticeInsertData);
|
if (noticeInsertData.length > 0) await trx("notice_push", this.ctx).jhInsert(noticeInsertData);
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user