Fix edit event cache issues

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2019-10-03 16:54:56 +02:00
parent 7412702cd8
commit 75bd7a3d75
4 changed files with 115 additions and 9 deletions

View File

@@ -52,6 +52,7 @@ const optionsQuery = `
program,
commentModeration,
showParticipationPrice
__typename
`;
export const FETCH_EVENT = gql`
@@ -62,7 +63,6 @@ export const FETCH_EVENT = gql`
url,
local,
title,
slug,
description,
beginsOn,
endsOn,
@@ -244,6 +244,9 @@ export const CREATE_EVENT = gql`
},
options {
${optionsQuery}
},
organizerActor {
id
}
}
}
@@ -289,6 +292,8 @@ export const EDIT_EVENT = gql`
id,
uuid,
title,
url,
local,
description,
beginsOn,
endsOn,
@@ -307,6 +312,20 @@ export const EDIT_EVENT = gql`
physicalAddress {
${physicalAddressQuery}
},
organizerActor {
avatar {
url
},
preferredUsername,
domain,
name,
url,
id,
},
participantStats {
approved,
unapproved
},
tags {
${tagsQuery}
},