diff --git a/app/Jobs/ExportSqliteBranchJob.php b/app/Jobs/ExportSqliteBranchJob.php index bd05d54..99dc52f 100644 --- a/app/Jobs/ExportSqliteBranchJob.php +++ b/app/Jobs/ExportSqliteBranchJob.php @@ -46,7 +46,7 @@ class ExportSqliteBranchJob implements ShouldQueue $exporter->exportMultiple([ 'branches' => [ - 'query' => fn () => Branch::where('id', $this->branchId)->get(), + 'query' => fn () => Branch::where('id', $this->branchId), 'tableSchema' => function ($table) { $table->id(); $table->string('name')->comment('店名'); @@ -64,7 +64,7 @@ class ExportSqliteBranchJob implements ShouldQueue ], ], 'rooms' => [ - 'query' => fn () => Room::where('branch_id', $this->branchId)->get(), + 'query' => fn () => Room::where('branch_id', $this->branchId), 'tableSchema' => function ($table) { $table->id(); $table->unsignedBigInteger('branch_id')->comment('關聯分店');