mirror of
https://github.com/neongamerbot-qk/hackclub-nest
synced 2024-11-24 09:23:42 +00:00
enhancement(lint): Fix lint errors for hackclub-spotify-bot/src/index.js
Some checks failed
Remote SSH Command / Build (push) Has been cancelled
Some checks failed
Remote SSH Command / Build (push) Has been cancelled
Co-authored-by: NeonGamerBot-QK <saahilattud@gmail.com> Signed-off-by: zeon-neon[bot] <136533918+zeon-neon[bot]@users.noreply.github.com>
This commit is contained in:
parent
f159a1a89d
commit
f336ec37b3
1 changed files with 6 additions and 6 deletions
|
@ -26,7 +26,7 @@ function arrayToCsv(data) {
|
|||
.map(String) // convert every value to String
|
||||
.map((v) => v.replaceAll('"', '""')) // escape double quotes
|
||||
.map((v) => `"${v}"`) // quote it
|
||||
.join(",") // comma-separated
|
||||
.join(","), // comma-separated
|
||||
)
|
||||
.join("\r\n"); // rows starting on new lines
|
||||
}
|
||||
|
@ -41,10 +41,10 @@ const oauth = new InstallProvider({
|
|||
stateSecret: process.env.STATE_SECRET,
|
||||
stateVerification: false,
|
||||
stateStore: new FileInstallationStore(
|
||||
path.join(__dirname, "../data/states.json")
|
||||
path.join(__dirname, "../data/states.json"),
|
||||
),
|
||||
installationStore: new FileInstallationStore(
|
||||
path.join(__dirname, "../data/installations.json")
|
||||
path.join(__dirname, "../data/installations.json"),
|
||||
),
|
||||
// installationStore: {
|
||||
|
||||
|
@ -84,7 +84,7 @@ app.use(
|
|||
}),
|
||||
saveUninitialized: true,
|
||||
cookie: { secure: "auto", maxAge: 1000 * 60 * 60 * 24 * 7 },
|
||||
})
|
||||
}),
|
||||
);
|
||||
|
||||
try {
|
||||
|
@ -120,7 +120,7 @@ app.get("/login", async (req, res) => {
|
|||
scopes: [],
|
||||
|
||||
userScopes: userScopes,
|
||||
})
|
||||
}),
|
||||
);
|
||||
}
|
||||
});
|
||||
|
@ -138,7 +138,7 @@ app.get("/slack/callback", (req, res) => {
|
|||
failure: (err) => {
|
||||
console.log(err);
|
||||
res.send(
|
||||
"Failed to install!, please contact neon in the slack!, \n" + err.stack
|
||||
"Failed to install!, please contact neon in the slack!, \n" + err.stack,
|
||||
);
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue