sort
This commit is contained in:
parent
c9845b0256
commit
28df293eef
2 changed files with 40 additions and 41 deletions
|
|
@ -681,7 +681,7 @@ export class StrategyController extends Controller {
|
|||
}
|
||||
case 2: {
|
||||
const data = await this.strategy2Repo.find({
|
||||
where: { id: requestBody.id ?? "" },
|
||||
where: { strategyChild1Id: requestBody.id ?? "" },
|
||||
});
|
||||
if (data == null) {
|
||||
throw new HttpError(HttpStatus.NOT_FOUND, "not found strategy2.");
|
||||
|
|
@ -695,7 +695,7 @@ export class StrategyController extends Controller {
|
|||
}
|
||||
case 3: {
|
||||
const data = await this.strategy3Repo.find({
|
||||
where: { id: requestBody.id ?? "" },
|
||||
where: { strategyChild2Id: requestBody.id ?? "" },
|
||||
});
|
||||
if (data == null) {
|
||||
throw new HttpError(HttpStatus.NOT_FOUND, "not found strategy3.");
|
||||
|
|
@ -709,7 +709,7 @@ export class StrategyController extends Controller {
|
|||
}
|
||||
case 4: {
|
||||
const data = await this.strategy4Repo.find({
|
||||
where: { id: requestBody.id ?? "" },
|
||||
where: { strategyChild3Id: requestBody.id ?? "" },
|
||||
});
|
||||
if (data == null) {
|
||||
throw new HttpError(HttpStatus.NOT_FOUND, "not found strategy4.");
|
||||
|
|
@ -723,7 +723,7 @@ export class StrategyController extends Controller {
|
|||
}
|
||||
case 5: {
|
||||
const data = await this.strategy5Repo.find({
|
||||
where: { id: requestBody.id ?? "" },
|
||||
where: { strategyChild4Id: requestBody.id ?? "" },
|
||||
});
|
||||
if (data == null) {
|
||||
throw new HttpError(HttpStatus.NOT_FOUND, "not found strategy5.");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue