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 | 2cbcd8b63bcd7e3d45cd92baa5bacd828527aea8 (patch) | |
tree | 36ef7044778eb0f660d02d08b57c4d0a143b9865 /BackEnd/Timeline/Services/User | |
parent | deb02d10e6139bb74a63343e2a8b70fee11bec22 (diff) | |
download | timeline-2cbcd8b63bcd7e3d45cd92baa5bacd828527aea8.tar.gz timeline-2cbcd8b63bcd7e3d45cd92baa5bacd828527aea8.tar.bz2 timeline-2cbcd8b63bcd7e3d45cd92baa5bacd828527aea8.zip |
refactor: Refactor is still on...
Diffstat (limited to 'BackEnd/Timeline/Services/User')
-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;
|