From 6c9778b55dd8367d38280c66e0f308c5332029ed Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 27 Apr 2021 18:38:26 +0800 Subject: refactor: Refactor is still on... --- BackEnd/Timeline/Services/User/UserAvatarService.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'BackEnd/Timeline/Services/User/UserAvatarService.cs') 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; -- cgit v1.2.3