-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Potential fix random bug caused for allowing multiple different locks for the same thread Tag v0.11.6
- Loading branch information
1 parent
fa4d4ca
commit ce22da0
Showing
9 changed files
with
90 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,6 @@ | |
import com.kevinguanchedarias.owgejava.interfaces.SyncSource; | ||
import com.kevinguanchedarias.owgejava.pojo.DeprecationRestResponse; | ||
import com.kevinguanchedarias.owgejava.pojo.UnitWithRequirementInformation; | ||
import com.kevinguanchedarias.owgejava.repository.MissionRepository; | ||
import com.kevinguanchedarias.owgejava.responses.CriticalAttackInformationResponse; | ||
import lombok.AllArgsConstructor; | ||
import org.springframework.web.bind.annotation.*; | ||
|
@@ -38,7 +37,6 @@ public class UnitRestService implements SyncSource { | |
private final UnitBo unitBo; | ||
private final CriticalAttackBo criticalAttackBo; | ||
private final ObtainedUnitFinderBo obtainedUnitFinderBo; | ||
private final MissionRepository missionRepository; | ||
|
||
/** | ||
* @author Kevin Guanche Darias <[email protected]> | ||
|
@@ -56,15 +54,10 @@ public Object findRunning(@RequestParam("planetId") Double planetId) { | |
} | ||
|
||
@PostMapping(value = "build") | ||
public Object build(@RequestParam("planetId") Long planetId, @RequestParam("unitId") Integer unitId, | ||
@RequestParam("count") Long count) { | ||
public void build(@RequestParam("planetId") Long planetId, @RequestParam("unitId") Integer unitId, | ||
@RequestParam("count") Long count) { | ||
Integer userId = findLoggedInUser().getId(); | ||
RunningUnitBuildDto retVal = missionBo.registerBuildUnit(userId, planetId, unitId, count); | ||
if (retVal == null) { | ||
return ""; | ||
} | ||
retVal.setMissionsCount(missionRepository.countByUserIdAndResolvedFalse(userId)); | ||
return retVal; | ||
missionBo.registerBuildUnit(userId, planetId, unitId, count); | ||
} | ||
|
||
@GetMapping("cancel") | ||
|