Skip to content

Commit

Permalink
Changing to new Nuclear Family API backend for Revive Requests (#800)
Browse files Browse the repository at this point in the history
* Change nukefamily API endpoint to new one

The Nuclear Family is changing to using a new API backend and now has a new URL.

* Altering nukefamily revive request to use new endpoint

The API backend for the Nuke Family is being switched to use a newly updated backend

* Add new changelog version for Nuke endpoint changes

* Update changelog.json

---------

Co-authored-by: Sashank <[email protected]>
  • Loading branch information
Fogest and Sashank999 authored Jun 25, 2024
1 parent e9c2f85 commit 4739e90
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion extension/changelog.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"logs": {
"features": [{ "message": "Show total value of an opened supply pack.", "contributor": "Conrado" }],
"fixes": [{ "message": "Fixing (and then reverting) racing features.", "contributor": "TheFoxMan" }],
"changes": [],
"changes": [{ "message": "Changing the Nuclear Family revive request API endpoint to use new URL", "contributor": "Fogest" }],
"removed": []
}
},
Expand Down
4 changes: 2 additions & 2 deletions extension/scripts/features/revive-request/ttReviveRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@

if (provider === "nuke") {
const response = await fetchData("nukefamily", {
section: "dev/reviveme.php",
section: "api/revive-request",
method: "POST",
body: { uid: id, Player: name, Faction: faction, Country: country, AppInfo: source },
body: { torn_player_id: id, torn_player_name: name, torn_player_country: country, app_info: source },
relay: true,
silent: true,
succeedOnError: true,
Expand Down
2 changes: 1 addition & 1 deletion extension/scripts/global/functions/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const FETCH_PLATFORMS = {
yata: "https://yata.yt/",
tornstats: "https://www.tornstats.com/",
torntools: "https://torntools.gregork.com/",
nukefamily: "https://www.nukefamily.org/",
nukefamily: "https://nuke.family/",
uhc: "https://tornuhc.eu/",
imperium: "https://inq.mavri.dev/",
hela: "https://api.no1irishstig.co.uk/",
Expand Down

0 comments on commit 4739e90

Please sign in to comment.