Skip to content

Commit

Permalink
fix: presign MeetingTemplate.illustrationUrl (#9705)
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Krick <matt.krick@gmail.com>
  • Loading branch information
mattkrick committed May 2, 2024
1 parent e61473e commit 1736e43
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/server/graphql/public/types/MeetingTemplate.ts
Expand Up @@ -12,6 +12,9 @@ const MeetingTemplate: MeetingTemplateResolvers = {
team: async ({teamId}, _args, {dataLoader}) => {
return dataLoader.get('teams').loadNonNull(teamId)
},
illustrationUrl: async ({illustrationUrl}, _args, {dataLoader}) => {
return dataLoader.get('fileStoreAsset').load(illustrationUrl)
},
viewerLowestScope: async ({teamId}, _args, {authToken, dataLoader}) => {
if (teamId === 'aGhostTeam') return 'PUBLIC'
const viewerId = getUserId(authToken)
Expand Down

0 comments on commit 1736e43

Please sign in to comment.