Skip to content

Commit

Permalink
Removing dumps and console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamKyle committed Oct 26, 2024
1 parent b84a6f3 commit b6fb285
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,6 @@ public function createUpgradeOrRepairRequest(

$messages = $capitalCityBuildingQueue->messages ?? [];

dump('createUpgradeOrRepairRequest');
dump($messages, $buildingsToUpgradeOrRepair);

$capitalCityBuildingQueue->update([
'building_request_data' => $buildingsToUpgradeOrRepair,
'messages' => array_merge($messages, $this->messages),
Expand Down Expand Up @@ -177,9 +174,6 @@ private function dispatchOrLogBuildingRequest(
CapitalCityQueueStatus::REPAIRING
]))->values()->toArray();

dump('dispatchOrLogBuildingRequest');
dump($filteredRequestData);

if (!empty($filteredRequestData)) {

if (config('app.env') !== 'production') {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,8 @@ public function handleBuildingRequests(CapitalCityBuildingQueue $capitalCityBuil
$kingdom = $capitalCityBuildingQueue->kingdom;
$character = $capitalCityBuildingQueue->character;

dump('handleBuildingRequests');
dump($requestData);
dump($capitalCityBuildingQueue->messages);

$requestData = $this->processBuildingRequests($kingdom, $requestData);

dump('After we process the rwquests');
dump($requestData);

$summedMissingCosts = $this->calculateSummedMissingCosts($requestData);

if (!empty($summedMissingCosts) && $shouldFailForMissingCosts) {
Expand Down
3 changes: 0 additions & 3 deletions app/Game/Kingdoms/Jobs/CapitalCityBuildingRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,6 @@ private function handleBuilding(CapitalCityBuildingQueue $queueData, CapitalCity
}
}

dump('Finishing the upgrade:');
dump($buildingRequestData);

$queueData->update([
'building_request_data' => $buildingRequestData,
'status' => CapitalCityQueueStatus::FINISHED
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,6 @@ export default class BuildingsInQueue extends React.Component<
.filter((kingdom: any) => kingdom !== null);
}

console.log(filteredBuildingData);

if (filteredBuildingData.length === 0) {
filteredBuildingData = this.state.building_queues;
openKingdomIds = new Set<number>();
Expand Down

0 comments on commit b6fb285

Please sign in to comment.