Skip to content

Commit

Permalink
Fix google drive download issue
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-pratik-k committed Dec 12, 2024
1 parent f3cd3e8 commit 79bb433
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
6 changes: 2 additions & 4 deletions data/lib/apis/google_drive/google_drive_endpoint.dart
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,10 @@ class GoogleDriveDownloadEndpoint extends DownloadEndpoint {
class GoogleDriveUpdateAppPropertiesEndpoint extends Endpoint {
final String id;
final String localFileId;
final CancelToken? cancellationToken;

const GoogleDriveUpdateAppPropertiesEndpoint({
required this.id,
required this.localFileId,
this.cancellationToken,
});

@override
Expand All @@ -116,11 +114,11 @@ class GoogleDriveUpdateAppPropertiesEndpoint extends Endpoint {
String get path => '/files/$id';

@override
CancelToken? get cancelToken => cancellationToken;
HttpMethod get method => HttpMethod.patch;

@override
Object? get data => {
"properties": {
"appProperties": {
ProviderConstants.localRefIdKey: localFileId,
},
};
Expand Down
1 change: 0 additions & 1 deletion data/lib/services/google_drive_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,6 @@ class GoogleDriveService extends CloudProviderService {
final res = await _client.req(
GoogleDriveUpdateAppPropertiesEndpoint(
id: id,
cancellationToken: cancelToken,
localFileId: localRefId,
),
);
Expand Down

0 comments on commit 79bb433

Please sign in to comment.