Skip to content

Commit

Permalink
change
Browse files Browse the repository at this point in the history
  • Loading branch information
sansan88 committed Jul 8, 2024
1 parent fb56562 commit 29e93ad
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
10 changes: 9 additions & 1 deletion functions/src/firestore/news/createClubNews.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,16 @@ export async function createNotificationClubNews(snapshot: QueryDocumentSnapshot
},
data: <DataMessagePayload>{
"type": "clubNews",
"id": clubNewsRef.id,
"clubId": clubId,
...clubNewsRef.data(),
"image": clubNewsRef.data().image,
"leadText": clubNewsRef.data().image,
"text": clubNewsRef.data().image,
"author": clubNewsRef.data().author,
"authorImage": clubNewsRef.data().authorImage,
"slug": clubNewsRef.data().slug,
"title": clubNewsRef.data().title,
"url": clubNewsRef.data().url,
},
},
);
Expand Down
10 changes: 9 additions & 1 deletion functions/src/firestore/news/createNews.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,15 @@ export async function createNotificationNews(snapshot: QueryDocumentSnapshot, co
},
data: <DataMessagePayload>{
"type": "news",
...newsRef.data(),
"id": newsRef.id,
"image": newsRef.data().image,
"leadText": newsRef.data().image,
"text": newsRef.data().image,
"author": newsRef.data().author,
"authorImage": newsRef.data().authorImage,
"slug": newsRef.data().slug,
"title": newsRef.data().title,
"url": newsRef.data().url,
},
},
);
Expand Down
Binary file modified functions/src/graphql/.DS_Store
Binary file not shown.

0 comments on commit 29e93ad

Please sign in to comment.