mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-25 06:34:58 +05:00
Фикс
This commit is contained in:
parent
43bb07d926
commit
10b3746819
2 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@ const express = require("express"),
|
|||
router.get("/:serverID", CheckAuth, async (req, res) => {
|
||||
// Check if the user has the permissions to edit this guild
|
||||
const guild = req.client.guilds.cache.get(req.params.serverID);
|
||||
if (!guild || !req.userInfos.displayedGuilds || !req.userInfos.displayedGuilds.find((g) => g.id === req.params.serverID)) {
|
||||
if (!guild) {
|
||||
return res.render("404", {
|
||||
user: req.userInfos,
|
||||
translate: req.translate,
|
||||
|
|
|
@ -6,7 +6,7 @@ const express = require("express"),
|
|||
// Gets user page
|
||||
router.get("/:userID/:serverID", CheckAuth, async function (req, res) {
|
||||
const guild = req.client.guilds.cache.get(req.params.serverID);
|
||||
if (!guild || !req.userInfos.displayedGuilds || !req.userInfos.displayedGuilds.find((g) => g.id === req.params.serverID)) {
|
||||
if (!guild) {
|
||||
return res.render("404", {
|
||||
user: req.userInfos,
|
||||
translate: req.translate,
|
||||
|
|
Loading…
Reference in a new issue