File tree 2 files changed +7
-1
lines changed
BlazorDiffusion.ServiceInterface
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -540,7 +540,6 @@ public async Task Delete(HardDeleteCreative request)
540
540
throw HttpError . NotFound ( $ "Creative { request . Id } does not exist") ;
541
541
542
542
var artifacts = Db . Select < Artifact > ( x => x . CreativeId == request . Id ) ;
543
-
544
543
var artifactIds = artifacts . Select ( x => x . Id ) . ToSet ( ) ;
545
544
546
545
using var transaction = Db . OpenTransaction ( ) ;
Original file line number Diff line number Diff line change @@ -50,6 +50,13 @@ public async Task<object> Any(UpdateUserProfile request)
50
50
?? throw new Exception ( "File Upload Failed" ) ;
51
51
request . Avatar = "/variants/width=128" . CombineWith ( publicPath ) ;
52
52
}
53
+
54
+ if ( string . IsNullOrWhiteSpace ( request . DisplayName ) )
55
+ request . DisplayName = null ;
56
+ if ( string . IsNullOrWhiteSpace ( request . Handle ) )
57
+ request . Handle = null ;
58
+ if ( string . IsNullOrWhiteSpace ( request . Avatar ) )
59
+ request . Avatar = null ;
53
60
54
61
await Db . UpdateOnlyAsync ( ( ) => new AppUser {
55
62
DisplayName = request . DisplayName ?? userInfo . DisplayName ,
You can’t perform that action at this time.
0 commit comments