File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ class CollectionRepository extends StacheRepository
1313 public function updateEntryUris ($ collection , $ ids = null )
1414 {
1515 $ query = $ collection ->queryEntries ()
16- ->when ($ ids , fn () => $ query ->whereIn ('id ' , $ ids ))
16+ ->when ($ ids , fn ($ query ) => $ query ->whereIn ('id ' , $ ids ))
1717 ->get ()
1818 ->each (function ($ entry ) {
1919 app ('statamic.eloquent.entries.model ' )::find ($ entry ->id ())->update (['uri ' => $ entry ->uri ()]);
@@ -80,7 +80,7 @@ public static function bindings(): array
8080 public function updateEntryOrder (CollectionContract $ collection , $ ids = null )
8181 {
8282 $ query = $ collection ->queryEntries ()
83- ->when ($ ids , fn () => $ query ->whereIn ('id ' , $ ids ))
83+ ->when ($ ids , fn ($ query ) => $ query ->whereIn ('id ' , $ ids ))
8484 ->get (['id ' ])
8585 ->each (function ($ entry ) {
8686 $ dispatch = UpdateCollectionEntryOrder::dispatch ($ entry ->id ());
You can’t perform that action at this time.
0 commit comments