From cf1ea1f081cfe99672ec6e971d82a008068b510d Mon Sep 17 00:00:00 2001 From: "allen.yan" Date: Mon, 16 Jun 2025 22:23:08 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AA=BF=E6=95=B4=20=E5=90=8C=E6=AD=A5Branch?= =?UTF-8?q?=20=E8=B3=87=E6=96=99=E6=9C=83=E5=85=A8=E9=83=A8=E5=88=B0?= =?UTF-8?q?=E5=88=86=E5=BA=97=E5=8E=BB=E7=9A=84=E5=95=8F=E9=A1=8C=20v1=202?= =?UTF-8?q?0250616?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Jobs/ExportSqliteBranchJob.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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('關聯分店');