Skip to content

Commit

Permalink
fixed typos
Browse files Browse the repository at this point in the history
  • Loading branch information
BeastGamer81 committed Apr 30, 2024
1 parent 64c6425 commit 4deb082
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/pages/api/admin/addres.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ const pterodactyl = cacheaccountinfo.attributes;
if (!pterodactyl.root_admin) {
return redirect(`/dashboard?error="Forbidden"`)
}
if (!config.coins.enabled) {
return redirect(`/admin?error="Coins are disabled."`)
}

// Getting data from Request
const formData = await request.formData();
Expand Down Expand Up @@ -90,7 +93,7 @@ catch (err) {
console.log(err)
return redirect("/admin/resources?error=" + err)
}
return redirect(`/admin/resources?success="Successfully Removed the resources from the user with the email: ${email}`)
return redirect(`/admin/resources?success="Successfully added the resources from the user with the email: ${usremail}`)
} else {
return redirect(`/admin/resources?error="Missing fields."`);
}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/api/admin/removeres.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ catch (err) {
console.log(err)
return redirect("/admin/resources?error=" + err)
}
return redirect(`/admin/resources?success="Successfully added the resources to the user with the email: ${email}`)
return redirect(`/admin/resources?success="Successfully removed the resources from the user with the email: ${usremail}`)
} else {
return redirect(`/admin/resources?error="Missing fields."`);
}
Expand Down

0 comments on commit 4deb082

Please sign in to comment.