rm console.log
此提交包含在:
@@ -27,7 +27,7 @@ export class PostModel {
|
||||
}
|
||||
|
||||
async setStatusByPostId(id: number, status: TPostStatus) {
|
||||
console.log(await db.query('update posts set status=? where id=?', [status, id]))
|
||||
await db.query('update posts set status=? where id=?', [status, id])
|
||||
}
|
||||
|
||||
}
|
||||
|
新增問題並參考
封鎖使用者