We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07f2e47 commit 04674a6Copy full SHA for 04674a6
middlewares/authorizeBot.js
@@ -18,7 +18,7 @@ const verifyCronJob = async (req, res, next) => {
18
const verifyDiscordBot = async (req, res, next) => {
19
try {
20
const token = req.headers.authorization.split(" ")[1];
21
- const serviceName = req.headers["x-service-name"];
+ const serviceName = req.headers["x-service-name"] || "";
22
if (serviceName === DISCORD_SERVICE) {
23
const data = botVerifcation.verifyDiscordService(token);
24
if (data.name !== DISCORD_SERVICE) {
0 commit comments