fix: add print for audit result and its JSON
This commit is contained in:
@ -67,6 +67,9 @@ export async function audit(cid: string, roundNumber: number, submitterKey: stri
|
||||
}),
|
||||
});
|
||||
|
||||
const auditResultJson = await auditResult.json();
|
||||
console.log(`[AUDIT] Audit result JSON:`, auditResultJson);
|
||||
|
||||
if (auditResult.data.success) {
|
||||
console.log(`[AUDIT] ✅ Audit successful for ${submitterKey}`);
|
||||
return auditResult.data.data.is_approved;
|
||||
|
Reference in New Issue
Block a user