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 29, 2024
1 parent 6d54cd7 commit a2195bc
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 a2195bc

Please sign in to comment.