UPDATE: Fix bug cache
All checks were successful
Build and Release / release (push) Successful in 1m31s

This commit is contained in:
2026-05-19 16:49:13 +07:00
parent 111a884574
commit 9cd244df12
4 changed files with 8 additions and 2 deletions

View File

@@ -172,7 +172,7 @@ func (s *commitService) RestoreCommit(ctx context.Context, userID string, projec
return fiber.NewError(fiber.StatusInternalServerError, "Failed to restore commit")
}
_ = s.c.Del(ctx, fmt.Sprintf("project:id:%s", projectID))
_ = s.c.Del(ctx, fmt.Sprintf("project:id:%s", projectID), fmt.Sprintf("commit:project:%s", projectID))
return nil
}

View File

@@ -175,6 +175,8 @@ func (s *submissionService) CreateSubmission(ctx context.Context, userID string,
return nil, fiber.NewError(fiber.StatusInternalServerError, "Failed to create submission")
}
_ = s.c.Del(ctx, fmt.Sprintf("project:id:%s", project.ID))
return submission.ToResponse(), nil
}