Skip to content

Commit

Permalink
feat: add feature to send reminder email
Browse files Browse the repository at this point in the history
  • Loading branch information
andresionek91 committed Jan 7, 2025
1 parent 2a0811c commit cc86b56
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions functions/download_service/code/repos/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@ async def get(self, token: UUID) -> Download:
detail="Invalid link.",
)

if record.is_downloaded:
raise HTTPException(
status_code=status.HTTP_403_FORBIDDEN,
detail="Link already used.",
)

if current_timestamp > record.expires_at:
raise HTTPException(
status_code=status.HTTP_403_FORBIDDEN,
Expand Down

0 comments on commit cc86b56

Please sign in to comment.