diff --git a/api/src/utils/notifications.js b/api/src/utils/notifications.js index 445d40b18..d3347368a 100644 --- a/api/src/utils/notifications.js +++ b/api/src/utils/notifications.js @@ -108,6 +108,9 @@ const scheduleNotificationsNotActivated3DaysCronJob = async () => { //last conso added is null equals: null, }, + appVersion: { + gte: "313", + }, createdAt: { gte: dayjs().utc().subtract(3, "day").startOf("day").toDate(), lte: dayjs().utc().subtract(3, "day").endOf("day").toDate(), diff --git a/expo/app.versions.json b/expo/app.versions.json index a7d27a680..ad87e52a0 100644 --- a/expo/app.versions.json +++ b/expo/app.versions.json @@ -1,4 +1,4 @@ { - "buildNumber": 312, - "buildName": "1.26.4" + "buildNumber": 313, + "buildName": "1.26.5" } diff --git a/expo/package.json b/expo/package.json index 40666ab8b..a402802e2 100644 --- a/expo/package.json +++ b/expo/package.json @@ -1,6 +1,6 @@ { "name": "oz-ensemble", - "version": "1.26.4", + "version": "1.26.5", "scripts": { "get-ip": "./get-ip.sh && echo \"this script updates the API IP to your own IP, because that's what Android Emulator needs to work. It's based on your wifi IP, if you need ethernet it won't work (needs en1 instead of en0)\"", "start": "expo start --dev-client", diff --git a/expo/src/reference/mocks/FakeData.js b/expo/src/reference/mocks/FakeData.js index 0313223e9..1457aa7a4 100644 --- a/expo/src/reference/mocks/FakeData.js +++ b/expo/src/reference/mocks/FakeData.js @@ -202,6 +202,34 @@ const FakeData = () => { }); }} /> + { + API.post({ + path: "/test/test-notif", + body: { + matomoId: storage.getString("@UserIdv2"), + type: "USER_SURVEY", + date: new Date(Date.now() + 70000), + }, + }); + }} + /> + { + API.post({ + path: "/test/test-notif", + body: { + matomoId: storage.getString("@UserIdv2"), + type: "DEFI1_DAY1", + date: new Date(Date.now() + 70000), + }, + }); + }} + />