Skip to content

Commit

Permalink
added more info for the slot value
Browse files Browse the repository at this point in the history
  • Loading branch information
MineFact committed Mar 6, 2024
1 parent d52dc5f commit 52fb001
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/routes/teams/POST_WarpGroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,12 @@ export async function initRoutes(app: Router, joi: any, network: Network) {
const id = req.body.id; // The id of the warp.
const name = req.body.name; // The name of the warp.
const description = req.body.description; // The description of the warp.
const slot = req.body.slot; // The slot of the warp.
let slot = req.body.slot; // The slot of the warp.
const material = req.body.material; // The material of the warp.

// If the slot is not provided, set it to -1
if(slot < 0 || slot >= 27)
slot = -1;

// Create a new warp
const promise = buildTeam.createWarpGroup(id, name, description, slot, material);
Expand Down
2 changes: 1 addition & 1 deletion swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -1140,7 +1140,7 @@
},
"slot": {
"type": "number",
"description": "The slot of the warp group.",
"description": "The slot of the warp group between 0 and 26. If the slot is -1, the next free slot will be used.",
"required": false
},
"material": {
Expand Down

0 comments on commit 52fb001

Please sign in to comment.