Update 'index.js'
This commit is contained in:
parent
b5dd11d7d7
commit
83598b940d
1 changed files with 3 additions and 3 deletions
6
index.js
6
index.js
|
@ -17,7 +17,7 @@ const {
|
||||||
const path = require("path");
|
const path = require("path");
|
||||||
// Init
|
// Init
|
||||||
const app = express();
|
const app = express();
|
||||||
const r = new redis(6379, "192.168.1.8", {
|
const r = new redis(6379, "192.168.1.11", {
|
||||||
connectionName: `ALEXHELDT${dev ? "-dev" : ""}`,
|
connectionName: `ALEXHELDT${dev ? "-dev" : ""}`,
|
||||||
});
|
});
|
||||||
const get = promisify(r.get).bind(r);
|
const get = promisify(r.get).bind(r);
|
||||||
|
@ -72,8 +72,8 @@ app.get("/", async (req, res) => {
|
||||||
socials,
|
socials,
|
||||||
music,
|
music,
|
||||||
creator: {
|
creator: {
|
||||||
name: await r.get("creator_name"),
|
name: await r.get("creator_name") || 'https://himbo.cat',
|
||||||
website: await r.get("creator_website"),
|
website: await r.get("creator_website") || "lio",
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue