Skip to content

Commit

Permalink
[server] Temporarily disable fetch from Wasabi
Browse files Browse the repository at this point in the history
  • Loading branch information
ua741 committed Jul 25, 2024
1 parent 89a8a45 commit 553c153
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions server/pkg/controller/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,6 @@ func (c *FileController) CleanUpStaleCollectionFiles(userID int64, fileID int64)
err = c.TrashRepository.CleanUpDeletedFilesFromCollection(context.Background(), fileIDs, userID)
if err != nil {
logger.WithError(err).Error("Failed to clean up stale files from collection")

}

}
Expand Down Expand Up @@ -372,10 +371,11 @@ func (c *FileController) GetCastFileUrl(ctx *gin.Context, fileID int64, objType
return c.getSignedURLForType(ctx, fileID, objType)
}

func (c *FileController) getSignedURLForType(ctx *gin.Context, fileID int64, objType ente.ObjectType) (string, error) {
if isCliRequest(ctx) {
return c.getWasabiSignedUrlIfAvailable(fileID, objType)
}
func (c *FileController) getSignedURLForType(_ *gin.Context, fileID int64, objType ente.ObjectType) (string, error) {
// todo:(neeraj) enable it back after wasabi changes
//if isCliRequest(ctx) {
// return c.getWasabiSignedUrlIfAvailable(fileID, objType)
//}
s3Object, err := c.ObjectRepo.GetObject(fileID, objType)
if err != nil {
return "", stacktrace.Propagate(err, "")
Expand Down

0 comments on commit 553c153

Please sign in to comment.