Skip to content

Commit

Permalink
modify suspense insert
Browse files Browse the repository at this point in the history
  • Loading branch information
msy7822-ux committed May 24, 2023
1 parent 4112638 commit 064aafb
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/app/actions/pai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ import { PaiType } from "@/types/paiType";
import { v4 as uuidv4 } from "uuid";

export const createVote = async (situationId: string, answer: PaiType) => {
const { error } = await supabase.from("votes").insert({
id: uuidv4(),
situationId: situationId,
answer: answer,
});
const { error } = await supabase.from("votes").insert([
{
id: uuidv4(),
situationId: situationId,
answer: answer,
},
]);

console.log(error);
};

1 comment on commit 064aafb

@vercel
Copy link

@vercel vercel bot commented on 064aafb May 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

chot-nanikiru – ./

chot-nanikiru-msy7822-ux.vercel.app
chot-nanikiru-git-main-msy7822-ux.vercel.app
chot-nanikiru.vercel.app

Please sign in to comment.