mirror of
https://github.com/ericasch6/scrum-poker-internal.git
synced 2026-10-13 16:32:09 +00:00
Added inern app integration
This commit is contained in:
@@ -21,6 +21,7 @@ class CloseInactiveRooms implements ShouldQueue
|
||||
|
||||
Room::query()
|
||||
->whereNull('closed_at')
|
||||
->where('is_persistent', false)
|
||||
->where(function ($query) use ($guestCutoff, $accountCutoff): void {
|
||||
$query
|
||||
->where(function ($query) use ($guestCutoff): void {
|
||||
@@ -40,7 +41,12 @@ class CloseInactiveRooms implements ShouldQueue
|
||||
->lockForUpdate()
|
||||
->find((string) $roomId);
|
||||
|
||||
if ($room === null || $room->isClosed() || $room->last_activity_at === null) {
|
||||
if (
|
||||
$room === null
|
||||
|| $room->isClosed()
|
||||
|| $room->is_persistent
|
||||
|| $room->last_activity_at === null
|
||||
) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user