Skip to content

Commit 831cb20

Browse files
authored
Merge pull request #5583 from Ocelot-Social-Community/update-group-avatar-on-upload
fix: 🍰 Update Group Avatar After Upload
2 parents 18e9d54 + f8c4b74 commit 831cb20

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

backend/src/middleware/excerptMiddleware.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ export default {
88
return resolve(root, args, context, info)
99
},
1010
UpdateGroup: async (resolve, root, args, context, info) => {
11-
args.descriptionExcerpt = trunc(args.description, DESCRIPTION_EXCERPT_HTML_LENGTH).html
11+
if (args.description)
12+
args.descriptionExcerpt = trunc(args.description, DESCRIPTION_EXCERPT_HTML_LENGTH).html
1213
return resolve(root, args, context, info)
1314
},
1415
CreatePost: async (resolve, root, args, context, info) => {

webapp/graphql/groups.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,9 @@ export const updateGroupMutation = () => {
9393
name
9494
icon
9595
}
96-
# avatar # test this as result
96+
avatar {
97+
url
98+
}
9799
locationName
98100
myRole
99101
}

0 commit comments

Comments
 (0)