diff options
author | crupest <crupest@outlook.com> | 2021-04-27 18:38:26 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-04-27 18:38:26 +0800 |
commit | 6c9778b55dd8367d38280c66e0f308c5332029ed (patch) | |
tree | b59aaf0194103af93c5a0c5e4e8bfd1b414ac201 /BackEnd/Timeline/Services/User/UserAvatarService.cs | |
parent | a341819711cda358652ad84b1e507d9559ecabfd (diff) | |
download | timeline-6c9778b55dd8367d38280c66e0f308c5332029ed.tar.gz timeline-6c9778b55dd8367d38280c66e0f308c5332029ed.tar.bz2 timeline-6c9778b55dd8367d38280c66e0f308c5332029ed.zip |
refactor: Refactor is still on...
Diffstat (limited to 'BackEnd/Timeline/Services/User/UserAvatarService.cs')
-rw-r--r-- | BackEnd/Timeline/Services/User/UserAvatarService.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/BackEnd/Timeline/Services/User/UserAvatarService.cs b/BackEnd/Timeline/Services/User/UserAvatarService.cs index a92df3cb..1b8896a6 100644 --- a/BackEnd/Timeline/Services/User/UserAvatarService.cs +++ b/BackEnd/Timeline/Services/User/UserAvatarService.cs @@ -200,7 +200,7 @@ namespace Timeline.Services.User await using var transaction = await _database.Database.BeginTransactionAsync();
- var tag = await _dataManager.RetainEntry(avatar.Data);
+ var tag = await _dataManager.RetainEntryAsync(avatar.Data);
var now = _clock.GetCurrentTime();
@@ -218,7 +218,7 @@ namespace Timeline.Services.User else
{
if (entity.DataTag is not null)
- await _dataManager.FreeEntry(entity.DataTag);
+ await _dataManager.FreeEntryAsync(entity.DataTag);
entity.DataTag = tag;
entity.Type = avatar.ContentType;
@@ -243,7 +243,7 @@ namespace Timeline.Services.User await using var transaction = await _database.Database.BeginTransactionAsync();
- await _dataManager.FreeEntry(entity.DataTag);
+ await _dataManager.FreeEntryAsync(entity.DataTag);
entity.DataTag = null;
entity.Type = null;
|