fix: dashboard edit previews, migration journal, and notes comments
Register drizzle journal entries for 0022/0023 so prod migrations apply. Key edit-mode widget previews by index so bangs.stats shows live data. Add comments to notes detail pages.
This commit is contained in:
@@ -77,6 +77,7 @@ export async function addComment(input: z.input<typeof commentInput>): Promise<C
|
||||
if (!row) throw new Error("Comment was not created");
|
||||
|
||||
revalidatePath("/lists");
|
||||
revalidatePath("/notes");
|
||||
|
||||
return {
|
||||
id: row.id,
|
||||
@@ -104,4 +105,5 @@ export async function deleteComment(input: { id: string }) {
|
||||
|
||||
await db.delete(comments).where(eq(comments.id, parsed.id));
|
||||
revalidatePath("/lists");
|
||||
revalidatePath("/notes");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user