mirror of
https://github.com/bitwarden/server.git
synced 2025-04-05 21:18:13 -05:00
Push syncs on Send Access (#1190)
* Push syncs on Send Access * Revert "Push syncs on Send Access" This reverts commit 6a3eb7af4f1d4233b6e8854c863b2e263d7dea54. * Push update of Send directly since we can't use SaveSendAsync method
This commit is contained in:
parent
c19121948d
commit
edb13bbba8
@ -213,6 +213,7 @@ namespace Bit.Core.Services
|
||||
|
||||
send.AccessCount++;
|
||||
await _sendRepository.ReplaceAsync(send);
|
||||
await _pushService.PushSyncSendUpdateAsync(send);
|
||||
return (await _sendFileStorageService.GetSendFileDownloadUrlAsync(send, fileId), false, false);
|
||||
}
|
||||
|
||||
@ -235,6 +236,7 @@ namespace Bit.Core.Services
|
||||
}
|
||||
|
||||
await _sendRepository.ReplaceAsync(send);
|
||||
await _pushService.PushSyncSendUpdateAsync(send);
|
||||
await RaiseReferenceEventAsync(send, ReferenceEventType.SendAccessed);
|
||||
return (send, false, false);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user