aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortranstrike <transtrike@gmail.com>2021-04-02 23:23:49 +0300
committertranstrike <transtrike@gmail.com>2021-04-02 23:23:49 +0300
commitadff0d579e7e23fd78cce144b358f98737c91bcf (patch)
tree130c1ae51f13b166ce41487e5b05a5618119d37c
parent0c83049a3a0b417da7dcd548b1cd0992defb366f (diff)
downloadDevHive-adff0d579e7e23fd78cce144b358f98737c91bcf.tar
DevHive-adff0d579e7e23fd78cce144b358f98737c91bcf.tar.gz
DevHive-adff0d579e7e23fd78cce144b358f98737c91bcf.zip
InsertProfilePic removed(useless, since every User has one at creation that gets replaced)
-rw-r--r--src/Services/DevHive.Services/Services/ProfilePictureService.cs8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/Services/DevHive.Services/Services/ProfilePictureService.cs b/src/Services/DevHive.Services/Services/ProfilePictureService.cs
index 0a4c824..1de2114 100644
--- a/src/Services/DevHive.Services/Services/ProfilePictureService.cs
+++ b/src/Services/DevHive.Services/Services/ProfilePictureService.cs
@@ -22,14 +22,6 @@ namespace DevHive.Services.Services
this._cloudinaryService = cloudinaryService;
}
- public async Task<string> InsertProfilePicture(ProfilePictureServiceModel profilePictureServiceModel)
- {
- ValidateProfPic(profilePictureServiceModel.ProfilePictureFormFile);
- await ValidateUserExistsAsync(profilePictureServiceModel.UserId);
-
- return await SaveProfilePictureInDatabase(profilePictureServiceModel);
- }
-
public async Task<string> GetProfilePictureById(Guid id)
{
return (await this._profilePictureRepository.GetByIdAsync(id)).PictureURL;