Skip to content

Commit

Permalink
Fix intel page error (#660)
Browse files Browse the repository at this point in the history
* add composer vendor directory

* remove invalid sql column escape characters
  • Loading branch information
recursivetree authored Jan 1, 2024
1 parent 21fdd20 commit fbb4e79
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/Http/Controllers/Character/IntelController.php
Original file line number Diff line number Diff line change
Expand Up @@ -699,11 +699,11 @@ private function characterWalletTransactionInteraction(Collection $character_ids
->select(DB::raw('
*, CASE
when character_wallet_transactions.location_id BETWEEN 66015148 AND 66015151 then
(SELECT s."stationName" FROM "staStations" AS s
WHERE s."stationID"=character_wallet_transactions.location_id-6000000)
(SELECT s.`stationName` FROM `staStations` AS s
WHERE s.`stationID`=character_wallet_transactions.location_id-6000000)
when character_wallet_transactions.location_id BETWEEN 66000000 AND 66014933 then
(SELECT s."stationName" FROM "staStations" AS s
WHERE s."stationID"=character_wallet_transactions.location_id-6000001)
(SELECT s.`stationName` FROM `staStations` AS s
WHERE s.`stationID`=character_wallet_transactions.location_id-6000001)
when character_wallet_transactions.location_id BETWEEN 66014934 AND 67999999 then
(SELECT d.name FROM sovereignty_structures AS c
JOIN universe_stations d ON c.structure_id = d.station_id
Expand All @@ -713,17 +713,17 @@ private function characterWalletTransactionInteraction(Collection $character_ids
JOIN universe_stations d ON c.structure_id = d.station_id
WHERE c.structure_id=character_wallet_transactions.location_id)
when character_wallet_transactions.location_id BETWEEN 60000000 AND 61000000 then
(SELECT s."stationName" FROM "staStations" AS s
WHERE s."stationID"=character_wallet_transactions.location_id)
(SELECT s.`stationName` FROM `staStations` AS s
WHERE s.`stationID`=character_wallet_transactions.location_id)
when character_wallet_transactions.location_id BETWEEN 61000000 AND 61001146 then
(SELECT d.name FROM sovereignty_structures AS c
JOIN universe_stations d ON c.structure_id = d.station_id
WHERE c.structure_id=character_wallet_transactions.location_id)
when character_wallet_transactions.location_id > 61001146 then
(SELECT name FROM universe_structures AS c
WHERE c.structure_id = character_wallet_transactions.location_id)
else (SELECT m."itemName" FROM "mapDenormalize" AS m
WHERE m."itemID"=character_wallet_transactions.location_id) end
else (SELECT m.`itemName` FROM `mapDenormalize` AS m
WHERE m.`itemID`=character_wallet_transactions.location_id) end
AS locationName'
))
->whereIn('character_id', $character_ids)
Expand Down

0 comments on commit fbb4e79

Please sign in to comment.