Batch up files when sending to a remote node

This commit is contained in:
2024-11-26 22:07:07 +11:00
parent 1296e3be40
commit 39034dbbb0
4 changed files with 30 additions and 6 deletions

View File

@@ -184,21 +184,26 @@ class System extends Model
}
}
public function getBatchFilesAttribute(?int $val): int
{
return $val ?: Setup::findOrFail(config('app.id'))->batch_files;
}
public function getIsOwnedAttribute(): bool
{
return $this->users->count();
}
public function getPktMsgsAttribute(?int $val): int
{
return $val ?: Setup::findOrFail(config('app.id'))->msgs_pkt;
}
public function getLastSeenAttribute(): ?Carbon
{
return $this->logs_recent->first()?->created_at;
}
public function getPktMsgsAttribute(?int $val): int
{
return $val ?: Setup::findOrFail(config('app.id'))->msgs_pkt;
}
/* METHODS */
public function addresses_common(): Collection