updateDataOwnerWithNewDelegateKeyPair method
Implementation
Future<DataOwnerDto?> updateDataOwnerWithNewDelegateKeyPair(String dataOwnerId, Map<String, List<String>> newKeyPair) async {
try {
return await _doUpdateDataOwnerWithNewDelegateKeyPair(dataOwnerId, newKeyPair);
} on ApiException {
hcParties.remove(dataOwnerId);
patients.remove(dataOwnerId);
devices.remove(dataOwnerId);
return _doUpdateDataOwnerWithNewDelegateKeyPair(dataOwnerId, newKeyPair);
}
}