mirror of
https://github.com/20kaushik02/spotify-manager.git
synced 2025-12-06 12:54:07 +00:00
mmm
This commit is contained in:
parent
9b02d5a35f
commit
4c4f451cec
@ -48,7 +48,7 @@ const callback = async (req, res) => {
|
|||||||
|
|
||||||
// check state
|
// check state
|
||||||
if (state === null || state !== storedState) {
|
if (state === null || state !== storedState) {
|
||||||
res.redirect(409, "/");
|
res.status(409).send({ message: "Invalid state" });
|
||||||
logger.warn("state mismatch");
|
logger.warn("state mismatch");
|
||||||
return;
|
return;
|
||||||
} else if (error) {
|
} else if (error) {
|
||||||
|
|||||||
@ -519,7 +519,7 @@ const populateSingleLink = async (req, res) => {
|
|||||||
const { toAddNum, localNum } = result;
|
const { toAddNum, localNum } = result;
|
||||||
let logMsg;
|
let logMsg;
|
||||||
logMsg = toAddNum > 0 ? "Added " + toAddNum + " tracks" : "No tracks to add";
|
logMsg = toAddNum > 0 ? "Added " + toAddNum + " tracks" : "No tracks to add";
|
||||||
logMsg += localNum > 0 ? ", but could not add " + localNum + " local files" : ".";
|
logMsg += localNum > 0 ? "; could not process " + localNum + " local files" : ".";
|
||||||
|
|
||||||
res.status(200).send({ message: logMsg });
|
res.status(200).send({ message: logMsg });
|
||||||
logger.debug(logMsg, { toAddNum, localNum });
|
logger.debug(logMsg, { toAddNum, localNum });
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user