Batch up files when sending to a remote node
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user