Skip to content

Commit

Permalink
[api] rephrase comment
Browse files Browse the repository at this point in the history
  • Loading branch information
MalinAhlberg committed Nov 29, 2024
1 parent 1d21555 commit 3ac7e5e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions sda/cmd/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,10 +290,8 @@ func ingestFile(c *gin.Context) {
c.Status(http.StatusOK)
}

// The deleteFile function will take the user id and the file id
// because the user id won't be in the path of the file in the future
// therefore we need to make the list files, get the file id and then
// call the delete file
// The deleteFile function deletes files from the inbox and marks them as
// discarded in the db. Files are identified by their ids and the user id.
func deleteFile(c *gin.Context) {

inbox, err := storage.NewBackend(Conf.Inbox)
Expand Down

0 comments on commit 3ac7e5e

Please sign in to comment.