UPDATE: Fix bug cache
All checks were successful
Build and Release / release (push) Successful in 1m31s
All checks were successful
Build and Release / release (push) Successful in 1m31s
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user