diff --git a/Notesnook.API/Services/S3Service.cs b/Notesnook.API/Services/S3Service.cs index f85729b..a4619b1 100644 --- a/Notesnook.API/Services/S3Service.cs +++ b/Notesnook.API/Services/S3Service.cs @@ -162,15 +162,15 @@ namespace Notesnook.API.Services public async Task GetDownloadObjectUrl(string userId, string name) { - var subscriptionService = await WampServers.SubscriptionServer.GetServiceAsync(SubscriptionServerTopics.UserSubscriptionServiceTopic); - var subscription = await subscriptionService.GetUserSubscriptionAsync(Clients.Notesnook.Id, userId); + // var subscriptionService = await WampServers.SubscriptionServer.GetServiceAsync(SubscriptionServerTopics.UserSubscriptionServiceTopic); + // var subscription = await subscriptionService.GetUserSubscriptionAsync(Clients.Notesnook.Id, userId); - var size = await GetObjectSizeAsync(userId, name); - if (StorageHelper.IsFileSizeExceeded(subscription, size)) - { - var fileSizeLimit = StorageHelper.GetFileSizeLimitForPlan(subscription); - throw new Exception($"You cannot download files larger than {StorageHelper.FormatBytes(fileSizeLimit)} on this plan."); - } + // var size = await GetObjectSizeAsync(userId, name); + // if (StorageHelper.IsFileSizeExceeded(subscription, size)) + // { + // var fileSizeLimit = StorageHelper.GetFileSizeLimitForPlan(subscription); + // throw new Exception($"You cannot download files larger than {StorageHelper.FormatBytes(fileSizeLimit)} on this plan."); + // } var url = this.GetPresignedURL(userId, name, HttpVerb.GET); if (url == null) return null;