Skip to content

Commit

Permalink
fix: app version
Browse files Browse the repository at this point in the history
  • Loading branch information
YoanRos committed Aug 27, 2024
1 parent d1ae56c commit b2f5baf
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 3 deletions.
3 changes: 3 additions & 0 deletions api/src/utils/notifications.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
4 changes: 2 additions & 2 deletions expo/app.versions.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"buildNumber": 312,
"buildName": "1.26.4"
"buildNumber": 313,
"buildName": "1.26.5"
}
2 changes: 1 addition & 1 deletion expo/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
28 changes: 28 additions & 0 deletions expo/src/reference/mocks/FakeData.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,34 @@ const FakeData = () => {
});
}}
/>
<MenuItem
caption="Envoyer une notification user survey"
//async function creating a notification
onPress={async () => {
API.post({
path: "/test/test-notif",
body: {
matomoId: storage.getString("@UserIdv2"),
type: "USER_SURVEY",
date: new Date(Date.now() + 70000),
},
});
}}
/>
<MenuItem
caption="Envoyer une notification defi1 day1"
//async function creating a notification
onPress={async () => {
API.post({
path: "/test/test-notif",
body: {
matomoId: storage.getString("@UserIdv2"),
type: "DEFI1_DAY1",
date: new Date(Date.now() + 70000),
},
});
}}
/>
<MenuItem
noAlert
caption="Visualiser l'écran 10 jours d'inactivité"
Expand Down

0 comments on commit b2f5baf

Please sign in to comment.