upgrade to Laravel 11 and schema squash (#245)

* upgrade to Laravel 11 and schema squash

* code style and npm audit fix

* fix #209
This commit is contained in:
Saeed Vaziry
2024-06-25 00:33:02 +03:30
committed by GitHub
parent b5c8d99ef8
commit e031bafba5
74 changed files with 898 additions and 2098 deletions

View File

@ -102,7 +102,7 @@ private function getInterval(array $input): Expression
)->diffInHours();
}
if ($periodInHours <= 1) {
if (abs($periodInHours) <= 1) {
return DB::raw("strftime('%Y-%m-%d %H:%M:00', created_at) as date_interval");
}