Skip to content

Commit

Permalink
fix(edit): set last updated
Browse files Browse the repository at this point in the history
  • Loading branch information
oyvindgrutle committed Jun 26, 2024
1 parent dc6215c commit a3ad7c1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export async function setTheme(bid: TBoardID, theme?: TTheme) {
await firestore()
.collection('boards')
.doc(bid)
.update({ theme: theme ?? 'dark' })
.update({ theme: theme ?? 'dark', 'meta.dateModified': Date.now() })

revalidatePath(`/edit/${bid}`)
}

0 comments on commit a3ad7c1

Please sign in to comment.