mirror of
https://github.com/thiloho/nixos-config.git
synced 2025-11-22 03:21:35 +01:00
Update flake and update todo timer query
This commit is contained in:
@@ -256,7 +256,7 @@
|
||||
pkgs.postgresql_15
|
||||
];
|
||||
script = ''
|
||||
psql -d todos -c "UPDATE user_todo SET is_overdue = true WHERE extract(epoch from CURRENT_DATE) > extract(epoch from due_date) AND is_completed = false AND is_overdue = false"
|
||||
psql -d todos -c "UPDATE user_todo SET is_overdue = true WHERE NOW() AT TIME ZONE 'CET' >= due_date AND is_completed = false AND is_overdue = false"
|
||||
'';
|
||||
serviceConfig = {
|
||||
User = "postgres";
|
||||
|
||||
Reference in New Issue
Block a user