mirror of
https://github.com/Lawin0129/LawinServer.git
synced 2026-01-13 10:52:23 +01:00
AssignWorkerToSquad Fix
This commit is contained in:
2
index.js
2
index.js
@@ -1667,7 +1667,7 @@ express.post("/fortnite/api/game/v2/profile/*/client/AssignWorkerToSquad", async
|
|||||||
if (profile.items[key].hasOwnProperty('attributes')) {
|
if (profile.items[key].hasOwnProperty('attributes')) {
|
||||||
if (profile.items[key].attributes.hasOwnProperty('squad_id') && profile.items[key].attributes.hasOwnProperty('squad_slot_idx')) {
|
if (profile.items[key].attributes.hasOwnProperty('squad_id') && profile.items[key].attributes.hasOwnProperty('squad_slot_idx')) {
|
||||||
if (profile.items[key].attributes.squad_id != "" && profile.items[key].attributes.squad_slot_idx != -1) {
|
if (profile.items[key].attributes.squad_id != "" && profile.items[key].attributes.squad_slot_idx != -1) {
|
||||||
if (profile.items[key].attributes.squad_id == req.body.squadId && profile.items[key].attributes.squad_slot_idx == req.body.slotIndex) {
|
if (profile.items[key].attributes.squad_id.toLowerCase() == req.body.squadId.toLowerCase() && profile.items[key].attributes.squad_slot_idx == req.body.slotIndex) {
|
||||||
profile.items[key].attributes.squad_id = profile.items[req.body.characterId].attributes.squad_id || "";
|
profile.items[key].attributes.squad_id = profile.items[req.body.characterId].attributes.squad_id || "";
|
||||||
profile.items[key].attributes.squad_slot_idx = profile.items[req.body.characterId].attributes.squad_slot_idx || 0;
|
profile.items[key].attributes.squad_slot_idx = profile.items[req.body.characterId].attributes.squad_slot_idx || 0;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user