aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Controllers/UserAvatarController.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-04-28 16:35:47 +0800
committercrupest <crupest@outlook.com>2021-04-28 16:35:47 +0800
commitb2cc1fd087633a1d7c679aab85bb72644750d612 (patch)
treed7e31a8e57eb119c424ed105428ac2cdbfdb3cb5 /BackEnd/Timeline/Controllers/UserAvatarController.cs
parent414d547753f9d7b534b3a4dbc618b5284aaa1a87 (diff)
downloadtimeline-b2cc1fd087633a1d7c679aab85bb72644750d612.tar.gz
timeline-b2cc1fd087633a1d7c679aab85bb72644750d612.tar.bz2
timeline-b2cc1fd087633a1d7c679aab85bb72644750d612.zip
refactor: ...
Diffstat (limited to 'BackEnd/Timeline/Controllers/UserAvatarController.cs')
-rw-r--r--BackEnd/Timeline/Controllers/UserAvatarController.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/BackEnd/Timeline/Controllers/UserAvatarController.cs b/BackEnd/Timeline/Controllers/UserAvatarController.cs
index 7d455fc6..c280f033 100644
--- a/BackEnd/Timeline/Controllers/UserAvatarController.cs
+++ b/BackEnd/Timeline/Controllers/UserAvatarController.cs
@@ -64,7 +64,7 @@ namespace Timeline.Controllers
return NotFound(ErrorResponse.UserCommon.NotExist());
}
- return await DataCacheHelper.GenerateActionResult(this, () => _service.GetAvatarDigest(id), () => _service.GetAvatar(id));
+ return await DataCacheHelper.GenerateActionResult(this, () => _service.GetAvatarDigestAsync(id), () => _service.GetAvatarAsync(id));
}
/// <summary>
@@ -102,7 +102,7 @@ namespace Timeline.Controllers
try
{
- var digest = await _service.SetAvatar(id, body);
+ var digest = await _service.SetAvatarAsync(id, body);
_logger.LogInformation(Log.Format(LogPutSuccess,
("Username", username), ("Mime Type", Request.ContentType)));
@@ -159,7 +159,7 @@ namespace Timeline.Controllers
return BadRequest(ErrorResponse.UserCommon.NotExist());
}
- await _service.DeleteAvatar(id);
+ await _service.DeleteAvatarAsync(id);
return Ok();
}
}