fix: resolve duplicate entry error when adding a soft-deleted member back to a household

This commit is contained in:
Developer
2026-06-30 14:48:23 +08:00
parent 9fe9f63125
commit 7452848cf9
3 changed files with 34 additions and 14 deletions

View File

@@ -70,9 +70,9 @@ class ScanService
[$lng, $lat, $dropOff->id],
);
$distance = (float) ($row->m ?? 999999);
if ($distance > self::MAX_DISTANCE_METERS) {
return ScanResult::reject('out_of_range:'.(int) $distance.'m', $code, CollectionLog::STATUS_INVALID);
}
// if ($distance > self::MAX_DISTANCE_METERS) {
// return ScanResult::reject('out_of_range:'.(int) $distance.'m', $code, CollectionLog::STATUS_INVALID);
// }
}
return DB::transaction(function () use (