diff options
author | crupest <crupest@outlook.com> | 2021-04-28 16:35:47 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-04-28 16:35:47 +0800 |
commit | b2cc1fd087633a1d7c679aab85bb72644750d612 (patch) | |
tree | d7e31a8e57eb119c424ed105428ac2cdbfdb3cb5 /BackEnd/Timeline/Controllers/UserAvatarController.cs | |
parent | 414d547753f9d7b534b3a4dbc618b5284aaa1a87 (diff) | |
download | timeline-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.cs | 6 |
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();
}
}
|