Skip to content
This repository has been archived by the owner on Nov 3, 2024. It is now read-only.

Commit

Permalink
Merge pull request #43 from Nightmaregodss/patch-1
Browse files Browse the repository at this point in the history
Update gift.js
  • Loading branch information
jojobingsa authored Apr 28, 2024
2 parents 58507c4 + f56e25c commit 13b1f6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routes/gift.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const settings = require('../handlers/readSettings').settings();

if (settings.api.client.allow.gift == true) {
if (settings.gift.enabled == true) {
module.exports.load = async function(app, ejs, db) {
app.get("/gift/coins", async (req, res) => {
if (!req.session.pterodactyl) return res.redirect("/login?redirect=gift");
Expand Down Expand Up @@ -48,4 +48,4 @@ module.exports.load = async function(app, ejs, db) {
await db.set(`extra-${req.query.id}`, userresources2)
return res.redirect("/gift?sucess=true");
})
}}
}}

0 comments on commit 13b1f6a

Please sign in to comment.