Code cleanup
This commit is contained in:
parent
63d700f01a
commit
0497b35ec3
1 changed files with 2 additions and 2 deletions
|
@ -99,7 +99,7 @@ public class ProfileController(UserService userSvc, DriveService driveSvc) : Con
|
|||
|
||||
var prevAvatarId = user.AvatarId;
|
||||
var prevBannerId = user.BannerId;
|
||||
|
||||
|
||||
if (!file.ContentType.StartsWith("image/"))
|
||||
throw GracefulException.BadRequest("Avatar must be an image");
|
||||
|
||||
|
@ -156,7 +156,7 @@ public class ProfileController(UserService userSvc, DriveService driveSvc) : Con
|
|||
|
||||
var prevAvatarId = user.AvatarId;
|
||||
var prevBannerId = user.BannerId;
|
||||
|
||||
|
||||
if (!file.ContentType.StartsWith("image/"))
|
||||
throw GracefulException.BadRequest("Banner must be an image");
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue