Finished the Integration of the InitOrGetGroupsEndpoint. Now we can save equipped items for a users character in the Database.

Init or get groups als initializes the Data when it doesn't exist.
This commit is contained in:
Vari
2024-02-24 14:18:33 +01:00
parent bb275cc9a3
commit e00f72b30f
19 changed files with 418 additions and 45 deletions

View File

@@ -37,8 +37,15 @@ public function initOrGetGroups(InitOrGetGroupsRequest $request)
else
$response->addFactionProgression($group, $user);
}
if (!$request->skipMetadataGroups) {
if($group->getCharacter() !== false)
$response->addCharacterMetadataGroup($group->getCharacter(), $user);
}
}
$response->addGeneralMetadata($user);
return json_encode($response);
}