From 29e93adf6665850efba2a5e6d3cd0700ea13291a Mon Sep 17 00:00:00 2001 From: sansan88 Date: Mon, 8 Jul 2024 16:14:24 +0200 Subject: [PATCH] change --- .../src/firestore/news/createClubNews.ts | 10 +++++++++- functions/src/firestore/news/createNews.ts | 10 +++++++++- functions/src/graphql/.DS_Store | Bin 8196 -> 8196 bytes 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/functions/src/firestore/news/createClubNews.ts b/functions/src/firestore/news/createClubNews.ts index d7860fd..a480894 100644 --- a/functions/src/firestore/news/createClubNews.ts +++ b/functions/src/firestore/news/createClubNews.ts @@ -68,8 +68,16 @@ export async function createNotificationClubNews(snapshot: QueryDocumentSnapshot }, data: { "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, }, }, ); diff --git a/functions/src/firestore/news/createNews.ts b/functions/src/firestore/news/createNews.ts index b07249f..9095afc 100644 --- a/functions/src/firestore/news/createNews.ts +++ b/functions/src/firestore/news/createNews.ts @@ -71,7 +71,15 @@ export async function createNotificationNews(snapshot: QueryDocumentSnapshot, co }, data: { "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, }, }, ); diff --git a/functions/src/graphql/.DS_Store b/functions/src/graphql/.DS_Store index 5d5bfb25d23e0fc464ad060c1f47c53a1346f433..f7f62d2b38c2b7648c5cfbf1e30057800c72683f 100644 GIT binary patch delta 105 zcmZp1XmQwJEx@>QvW-BYhh%lNiKT&#f{BrFt&T#qp`n4Xj)IwiWo<1dhp4i?bx?eE pPHtX)HvAvW-BYx