From 553c153155505cbab30010f76635a82c45975663 Mon Sep 17 00:00:00 2001 From: Neeraj Gupta <254676+ua741@users.noreply.github.com> Date: Thu, 25 Jul 2024 11:39:19 +0530 Subject: [PATCH] [server] Temporarily disable fetch from Wasabi --- server/pkg/controller/file.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/server/pkg/controller/file.go b/server/pkg/controller/file.go index b5bad99c33..5bb4f47bf9 100644 --- a/server/pkg/controller/file.go +++ b/server/pkg/controller/file.go @@ -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") - } } @@ -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, "")