mirror of
https://github.com/bitwarden/mobile.git
synced 2024-11-22 11:35:21 +01:00
Fix build errors with delete repo contract change
This commit is contained in:
parent
7d62a89a51
commit
6d6f4b350b
@ -10,6 +10,6 @@ namespace Bit.App.Abstractions
|
||||
Task<Folder> GetByIdAsync(string id);
|
||||
Task<IEnumerable<Folder>> GetAllAsync();
|
||||
Task<ApiResult<FolderResponse>> SaveAsync(Folder folder);
|
||||
Task<ApiResult<object>> DeleteAsync(string folderId);
|
||||
Task<ApiResult> DeleteAsync(string folderId);
|
||||
}
|
||||
}
|
||||
|
@ -11,6 +11,6 @@ namespace Bit.App.Abstractions
|
||||
Task<IEnumerable<Site>> GetAllAsync();
|
||||
Task<IEnumerable<Site>> GetAllAsync(bool favorites);
|
||||
Task<ApiResult<SiteResponse>> SaveAsync(Site site);
|
||||
Task<ApiResult<object>> DeleteAsync(string id);
|
||||
Task<ApiResult> DeleteAsync(string id);
|
||||
}
|
||||
}
|
||||
|
@ -75,9 +75,9 @@ namespace Bit.App.Services
|
||||
return response;
|
||||
}
|
||||
|
||||
public async Task<ApiResult<object>> DeleteAsync(string folderId)
|
||||
public async Task<ApiResult> DeleteAsync(string folderId)
|
||||
{
|
||||
ApiResult<object> response = await _folderApiRepository.DeleteAsync(folderId);
|
||||
var response = await _folderApiRepository.DeleteAsync(folderId);
|
||||
if(response.Succeeded)
|
||||
{
|
||||
await _folderRepository.DeleteAsync(folderId);
|
||||
|
@ -82,9 +82,9 @@ namespace Bit.App.Services
|
||||
return response;
|
||||
}
|
||||
|
||||
public async Task<ApiResult<object>> DeleteAsync(string id)
|
||||
public async Task<ApiResult> DeleteAsync(string id)
|
||||
{
|
||||
ApiResult<object> response = await _siteApiRepository.DeleteAsync(id);
|
||||
var response = await _siteApiRepository.DeleteAsync(id);
|
||||
if(response.Succeeded)
|
||||
{
|
||||
await _siteRepository.DeleteAsync(id);
|
||||
|
Loading…
Reference in New Issue
Block a user