🚨 Lint and prettier fix

This commit is contained in:
ajnart
2022-06-21 16:21:40 +02:00
parent 91a249d953
commit f0bae49830
5 changed files with 64 additions and 54 deletions

View File

@@ -44,9 +44,9 @@ async function Post(req: NextApiRequest, res: NextApiResponse) {
});
}
// Get the origin URL
var { href: origin } = new URL(service.url);
if (origin.endsWith("/")) {
origin = origin.slice(0, -1)
let { href: origin } = new URL(service.url);
if (origin.endsWith('/')) {
origin = origin.slice(0, -1);
}
const pined = `${origin}${url?.url}?apiKey=${service.apiKey}&end=${nextMonth}&start=${lastMonth}`;
const data = await axios.get(