Skip to content

Commit 64f3acb

Browse files
committed
fix: add short_bio slice for update profile
1 parent 15a40a0 commit 64f3acb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/velog-server/src/graphql/resolvers/userResolvers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ const userResolvers: Resolvers = {
9999
updateProfile: async (_, { input }, ctx) => {
100100
const userProfileService = container.resolve(UserProfileService)
101101
return await userProfileService.updateUserProfile(
102-
{ display_name: input.display_name, short_bio: input.short_bio },
102+
{ display_name: input.display_name, short_bio: input.short_bio.slice(0, 255) },
103103
ctx.user?.id,
104104
)
105105
},

0 commit comments

Comments
 (0)