From cabb87b850ee7f4bd62546c20686639881d7c59d Mon Sep 17 00:00:00 2001 From: arvinxx Date: Thu, 14 Mar 2024 20:30:34 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20chore:=20improve=20code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/database/models/topic.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/database/models/topic.ts b/src/database/models/topic.ts index 838314411e9a..27bcf261d587 100644 --- a/src/database/models/topic.ts +++ b/src/database/models/topic.ts @@ -217,7 +217,7 @@ class _TopicModel extends BaseModel { // **************** Update *************** // async update(id: string, data: Partial) { - return super._updateWithSync(id, { ...data, updatedAt: Date.now() }); + return super._updateWithSync(id, data); } async toggleFavorite(id: string, newState?: boolean) {