Skip to content

Commit

Permalink
#465 - fix: fixed slack messages
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilpiech97 committed Jul 16, 2024
1 parent 86b7112 commit 20dfb29
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lang/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@
"The request :title is waiting for your administrative approval.\nUser: :requester\nDate: :date (number of days: :days)": "Wniosek :title czeka na Twoją akceptację administracyjną.\nPracownik: :requester\nData: :date (liczba dni: :days)",
"The request :title has been approved by you as a technical approver.\nUser: :requester\nDate: :date (number of days: :days)": "Wniosek :title został zaakceptowany przez Ciebie jako przełożonego technicznego.\nPracownik: :requester\nData: :date (liczba dni: :days)",
"The request :title has been approved by you as an administrative approver.\nUser: :requester\nDate: :date (number of days: :days)": "Wniosek :title został zaakceptowany przez Ciebie jako przełożonego administracyjnego.\nPracownik: :requester\nData: :date (liczba dni: :days)",
"The deadline for occupational ohs training for you is about to expire - :date (overdue :difference days)": "Niedługo mija termin szkolenia BHP dla Ciebie - :date (przeterminowane za :difference dni)",
"The deadline for occupational health examinations for you is about to expire - :date (overdue :difference days)": "Niedługo mija termin badań lekarskich z medycyny pracy dla Ciebie - :date (przeterminowane za :difference dni)",
"The deadline for occupational ohs training for you is about to expire - :date (:difference days)": "Niedługo mija termin Twojego szkolenia BHP - :date (:difference dni)",
"The deadline for occupational health examinations for you is about to expire - :date (:difference days)": "Niedługo mija termin Twojego badania lekarskiego z medycyny pracy - :date (:difference dni)",
"Request :title has been :status": "Wniosek :title został :status",
"Request :title in :application": "Wniosek :title w aplikacji :application",
"The request :title from user :requester has been :status.": "Wniosek :title użytkownika :requester został :status.",
Expand Down
10 changes: 10 additions & 0 deletions routes/console.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
use Toby\Console\Commands\SendNotificationAboutBenefitsReportCreation;
use Toby\Console\Commands\SendNotificationAboutUpcomingAndOverdueMedicalExams;
use Toby\Console\Commands\SendNotificationAboutUpcomingAndOverdueOhsTraining;
use Toby\Console\Commands\SendNotificationAboutUpcomingMedicalExamsForEmployees;
use Toby\Console\Commands\SendNotificationAboutUpcomingOhsTrainingForEmployees;
use Toby\Console\Commands\SendOvertimeRequestSummariesToApprovers;
use Toby\Console\Commands\SendVacationRequestSummariesToApprovers;
use Toby\Jobs\CheckYearPeriod;
Expand Down Expand Up @@ -49,6 +51,14 @@
->hourly()
->onOneServer();

Schedule::command(SendNotificationAboutUpcomingMedicalExamsForEmployees::class)
->weeklyOn(1, "08:30")
->onOneServer();

Schedule::command(SendNotificationAboutUpcomingOhsTrainingForEmployees::class)
->weeklyOn(1, "08:30")
->onOneServer();

$scheduledTask = Schedule::command(BackupPostgresDatabase::class)
->dailyAt(time: "05:00")
->withoutOverlapping()
Expand Down

0 comments on commit 20dfb29

Please sign in to comment.