Skip to content

Commit

Permalink
fix: 과제 리스트 revalidate
Browse files Browse the repository at this point in the history
  • Loading branch information
hamo-o committed Aug 28, 2024
1 parent 59be899 commit 1da5b6d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,14 @@ const AssignmentHeader = ({ assignment, disabled }: AssignmentHeaderProps) => {
const { success } = await studyApi.createAssignment(studyDetailId, data);
if (success) {
revalidateTagByName(`${tags.assignments} ${studyDetailId.toString()}`);
revalidateTagByName(tags.assignments);
onOpen();
}
} else if (assignmentStatus === "OPEN") {
const { success } = await studyApi.patchAssignment(studyDetailId, data);
if (success) {
revalidateTagByName(`${tags.assignments} ${studyDetailId.toString()}`);
revalidateTagByName(tags.assignments);
onOpen();
}
}
Expand Down

0 comments on commit 1da5b6d

Please sign in to comment.