Skip to content

Commit 76acc92

Browse files
committed
Fixes velopert#65
1 parent 3ddd3db commit 76acc92

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

velog-backend/src/router/me/me.ctrl.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,13 @@ export const updateProfile = async (ctx: Context): Promise<*> => {
4646
where: {
4747
fk_user_id: user.id,
4848
},
49-
attributes: ['id', 'display_name', 'short_bio', 'thumbnail'],
49+
attributes: [
50+
'id',
51+
'display_name',
52+
'short_bio',
53+
'thumbnail',
54+
'profile_links',
55+
],
5056
});
5157
if (!profile) {
5258
ctx.throw(500, 'Invalid Profile');
@@ -65,6 +71,7 @@ export const updateProfile = async (ctx: Context): Promise<*> => {
6571
display_name: profile.display_name,
6672
thumbnail: profile.thumbnail,
6773
short_bio: profile.short_bio,
74+
profile_links: profile.profile_links,
6875
};
6976
} catch (e) {
7077
ctx.throw(500, e);

0 commit comments

Comments
 (0)