refactor: Remove unnecessary console.log in nodes (no-changelog) (#11915)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2024-11-27 15:53:07 +01:00
committed by GitHub
parent 683ee42d3b
commit ddda0bde0b
7 changed files with 15 additions and 21 deletions

View File

@@ -99,7 +99,7 @@ export async function haloPSAApiRequest(
if (method === 'DELETE' || method === 'GET' || (method === 'POST' && message)) {
let newErrorMessage;
if (message.includes('400')) {
console.log(message);
this.logger.debug(message);
newErrorMessage = JSON.parse(message.split(' - ')[1]);
(error as JsonObject).message = `For field ID, ${
newErrorMessage.id || newErrorMessage['[0].id']
@@ -136,14 +136,14 @@ export async function haloPSAApiRequest(
// )) as IDataObject;
// const { tickets } = response;
// console.log((tickets as IDataObject[]).map(t => t.id));
// this.logger.debug((tickets as IDataObject[]).map(t => t.id));
// const body: IDataObject = {
// id: clientId,
// client_id: reasigmentCliendId,
// };
// for (const ticket of (tickets as IDataObject[])) {
// console.log(ticket.id);
// this.logger.debug(ticket.id);
// await haloPSAApiRequest.call(this, 'DELETE', `/tickets/${ticket.id}`, accessToken);
// }
// }