Skip to content

Commit ac00c40

Browse files
JohannesLootkirre-bylund
authored andcommitted
- Fixed wrong endpoint
- Unsubscribe always to editor update
1 parent fadae04 commit ac00c40

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Runtime/Editor/Editor UI/LootLockerAdminExtension.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -609,14 +609,13 @@ void OnGameSelected(EventBase e)
609609

610610
LootLockerAdminManager.GetGameDomainKey(LootLockerEditorData.GetSelectedGame(), (onComplete) =>
611611
{
612+
EditorApplication.update -= OnEditorUpdate;
612613
if (!onComplete.success)
613614
{
614615
ShowPopup("Error", "Could not find Selected game!");
615616
return;
616617
}
617618
LootLockerConfig.current.domainKey = onComplete.game.domain_key;
618-
619-
EditorApplication.update -= OnEditorUpdate;
620619
});
621620

622621

Runtime/Editor/LootLockerAdminEndPoints.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public class LootLockerAdminEndPoints
1616
[Header("User Information")]
1717
public static EndPointClass adminExtensionUserInformation = new EndPointClass("v1/user/all", LootLockerHTTPMethod.GET);
1818
public static EndPointClass adminExtensionGetUserRole = new EndPointClass("roles/{0}", LootLockerHTTPMethod.GET);
19-
public static EndPointClass adminExtensionGetGameInformation = new EndPointClass("/game/{0}", LootLockerHTTPMethod.GET);
19+
public static EndPointClass adminExtensionGetGameInformation = new EndPointClass("v1/game/{0}", LootLockerHTTPMethod.GET);
2020
}
2121
}
2222
#endif

0 commit comments

Comments
 (0)