mirror of
https://github.com/immich-app/immich.git
synced 2024-12-31 00:43:56 -05:00
wip
This commit is contained in:
parent
c579e78413
commit
630fcf3516
2 changed files with 1 additions and 6 deletions
|
@ -1,5 +1,3 @@
|
|||
import 'dart:io';
|
||||
|
||||
import 'package:cancellation_token_http/http.dart';
|
||||
import 'package:collection/collection.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
|
@ -473,7 +471,7 @@ class BackupNotifier extends StateNotifier<BackUpState> {
|
|||
}
|
||||
|
||||
// Check with server for hash duplication
|
||||
await _backupService.checkBulkUpload(candidates);
|
||||
final bulkCheckResult = await _backupService.checkBulkUpload(candidates);
|
||||
|
||||
// // Perform Backup
|
||||
// state = state.copyWith(cancelToken: CancellationToken());
|
||||
|
|
|
@ -7,10 +7,8 @@ import 'package:collection/collection.dart';
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
||||
import 'package:immich_mobile/entities/backup_album.entity.dart';
|
||||
import 'package:immich_mobile/entities/device_asset.entity.dart';
|
||||
import 'package:immich_mobile/entities/duplicated_asset.entity.dart';
|
||||
import 'package:immich_mobile/entities/store.entity.dart';
|
||||
import 'package:immich_mobile/extensions/string_extensions.dart';
|
||||
import 'package:immich_mobile/models/backup/backup_candidate.model.dart';
|
||||
import 'package:immich_mobile/models/backup/bulk_upload_check_result.model.dart';
|
||||
import 'package:immich_mobile/models/backup/current_upload_asset.model.dart';
|
||||
|
@ -79,7 +77,6 @@ class BackupService {
|
|||
AssetBulkUploadCheckDto(assets: assets),
|
||||
);
|
||||
|
||||
// AssetBulkUploadCheckResult[action=reject, assetId=6929085c-ad33-489b-a352-af1bdcf19ee6, id=-9223372036854775808, reason=duplicate]
|
||||
if (response == null) {
|
||||
return BulkUploadCheckResult(
|
||||
rejects: [],
|
||||
|
|
Loading…
Reference in a new issue