mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
chore: stop using legacy partner create endpoint (#27806)
This commit is contained in:
@@ -21,8 +21,8 @@ class PartnerApiRepository extends ApiRepository {
|
|||||||
return response.map(UserConverter.fromPartnerDto).toList();
|
return response.map(UserConverter.fromPartnerDto).toList();
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<UserDto> create(String id) async {
|
Future<UserDto> create(String sharedWithId) async {
|
||||||
final dto = await checkNull(_api.createPartnerDeprecated(id));
|
final dto = await checkNull(_api.createPartner(PartnerCreateDto(sharedWithId: sharedWithId)));
|
||||||
return UserConverter.fromPartnerDto(dto);
|
return UserConverter.fromPartnerDto(dto);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user