Skip to content

Commit

Permalink
🎨 chore: improve code
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Mar 14, 2024
1 parent 1e4b323 commit cabb87b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/database/models/topic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ class _TopicModel extends BaseModel {

// **************** Update *************** //
async update(id: string, data: Partial<DB_Topic>) {
return super._updateWithSync(id, { ...data, updatedAt: Date.now() });
return super._updateWithSync(id, data);
}

async toggleFavorite(id: string, newState?: boolean) {
Expand Down

0 comments on commit cabb87b

Please sign in to comment.