when avatar is uploaded, the description is not present. Therefore no descriptionExcerpt should be created in middleware

This commit is contained in:
Moriz Wahl 2022-10-27 13:02:05 +02:00
parent 594477f7bf
commit f8c4b74be1

View File

@ -8,7 +8,8 @@ export default {
return resolve(root, args, context, info)
},
UpdateGroup: async (resolve, root, args, context, info) => {
args.descriptionExcerpt = trunc(args.description, DESCRIPTION_EXCERPT_HTML_LENGTH).html
if (args.description)
args.descriptionExcerpt = trunc(args.description, DESCRIPTION_EXCERPT_HTML_LENGTH).html
return resolve(root, args, context, info)
},
CreatePost: async (resolve, root, args, context, info) => {