Skip to content

Commit 88d3c5a

Browse files
adminadmin
authored andcommitted
fix: retours pr desactivation temporaire (#1127)
1 parent f64bb38 commit 88d3c5a

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.kontinuous/env/dev/templates/cron.configmap.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ data:
1414
BACKEND_CRON_REQUEST_DS8J15J_DEADLINE_REMIND: "90"
1515
BACKEND_CRON_UPDATE_STATUT_DS_CRON: "*/15 * * * *"
1616
BACKEND_CRON_REQUEST_ACTIONS_BO_CRON: "0 9,12 * * 1-5"
17-
BACKEND_CRON_DISABLE_ACCOUNT_3M_CRON: "5 8 * * 1"
17+
BACKEND_CRON_DISABLE_ACCOUNT_3M_CRON: "5 8 * * 1"
18+

packages/cron/src/blocageTemporaire3m/blocageTemporaire3m.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const querySelectUsersToBlock = `
2525
const queryBlockUser = `
2626
UPDATE front.users
2727
SET status_code = '${statusUserFront.TEMPORARY_BLOCKED}',
28-
temporary_blocked_at = current_timestamp
28+
temporary_blocked_at = NOW()
2929
WHERE id = $1
3030
`;
3131

0 commit comments

Comments
 (0)