Fix review issues: authz, race conditions, UX safety, and consolidate migrations

This commit is contained in:
CREDO23 2026-03-31 19:09:05 +02:00
parent 5f4f7780d1
commit aecb58e22b
10 changed files with 227 additions and 217 deletions

View file

@ -31,7 +31,6 @@ export const updatePromptMutationAtom = atomWithMutation(() => ({
onSuccess: () => {
toast.success("Prompt updated");
queryClient.invalidateQueries({ queryKey: cacheKeys.prompts.all() });
queryClient.invalidateQueries({ queryKey: cacheKeys.prompts.public() });
},
onError: (error: Error) => {
toast.error(error.message || "Failed to update prompt");