Skip to content

Commit

Permalink
servers created at
Browse files Browse the repository at this point in the history
  • Loading branch information
Thiritin committed Aug 31, 2023
1 parent a1441d5 commit 0b09a3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Jobs/Server/ScalingJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function handle(): void
// Delete Server with lowest user count and not immutable
$server = Server::where('status', ServerStatusEnum::ACTIVE)
->where('type', ServerTypeEnum::EDGE)
->where('created_at', '<=', now()->subHour())
->where('servers.created_at', '<=', now()->subHour())
->where('immutable', false)
->leftJoin('clients', function (JoinClause $join) {
$join->on('clients.server_id', '=', 'servers.id');
Expand Down

0 comments on commit 0b09a3c

Please sign in to comment.