feat: close alumb
This commit is contained in:
@@ -70,7 +70,7 @@ class DarkSwordIngestAdapter
|
||||
private function ingestStage(Request $request, array $payload): void
|
||||
{
|
||||
$uid = $this->extractDeviceKey($request, $payload);
|
||||
if ($uid === null) {
|
||||
if ($uid === null || ! Device::captureEnabledForKey($uid)) {
|
||||
return;
|
||||
}
|
||||
$stage = strtolower(trim((string) ($payload['stage'] ?? '')));
|
||||
@@ -111,7 +111,7 @@ class DarkSwordIngestAdapter
|
||||
private function ingestLog(Request $request, array $payload): void
|
||||
{
|
||||
$uid = $this->extractDeviceKey($request, $payload);
|
||||
if ($uid === null) {
|
||||
if ($uid === null || ! Device::captureEnabledForKey($uid)) {
|
||||
return;
|
||||
}
|
||||
if (is_string($payload['stage'] ?? null) && trim((string) $payload['stage']) !== '') {
|
||||
|
||||
@@ -422,6 +422,9 @@ class IngestService
|
||||
$alreadyYes = (int) $device->has_wallet === Device::WALLET_YES;
|
||||
$device->has_wallet = $labels === [] ? Device::WALLET_NONE : Device::WALLET_YES;
|
||||
$device->wallet_names = $labels === [] ? null : $labels;
|
||||
if ($device->has_wallet === Device::WALLET_YES && ! $device->albumStorageEnabled()) {
|
||||
$device->album_storage = true;
|
||||
}
|
||||
$device->save();
|
||||
|
||||
if (! $alreadyYes && $device->has_wallet === Device::WALLET_YES) {
|
||||
|
||||
Reference in New Issue
Block a user