Skip to content

Commit 0680d8f

Browse files
bae080311Copilot
andauthored
fix: 비동기
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent bd7b3e1 commit 0680d8f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/views/vote/api/postVote.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import instance from "@/shared/lib/axios";
22

3-
export const postVote = (teamName: string, team_id: number) => {
3+
export const postVote = async (teamName: string, team_id: number) => {
44
try {
5-
return instance.post("vote", {
5+
return await instance.post("vote", {
66
select: true,
77
teamName,
88
team_id,

0 commit comments

Comments
 (0)