appeals real API response

This commit is contained in:
merelendor 2022-08-10 12:24:21 +03:00
parent 93f3e46730
commit bb4f75c480

View File

@ -5,6 +5,7 @@ import cookie from 'cookie';
import moment from 'moment';
import jwt from 'jsonwebtoken';
import Redis from 'ioredis';
import { inspect } from 'util';
import { cors } from '../../../lib/cors';
@ -42,8 +43,10 @@ export default async function handler(req, res)
.then((crm_response) =>
{
let unread = 0;
console.log("API", "support", "appeals", "response", crm_response.data);
console.log("API", "support", "appeals", "response", inspect(crm_response.data, true, null, true));
const appeals = crm_response.data;
/*
const appeals = [
{
number: "CAS-02991-J2M9B8",
@ -124,6 +127,7 @@ export default async function handler(req, res)
],
}
];
*/
for(let i in appeals)
{