import { collectionRetry } from "../serviceLog";
import retryCollectionPayoutsService from "./services/retryCollectionPayouts.service";
let C = "COLL RETRY WORKER"
const retryCollectionPayouts = async () => {
    try {
        collectionRetry.info(`[${C}], Starting Collection Payout Retry Script`);

        const count = await retryCollectionPayoutsService.process();

        collectionRetry.info(`[${C}], Collection Payout Retry Completed. Total: ${count}`);
    } catch (error: any) {
        collectionRetry.info(`[${C}], Collection Payout Retry Script Error: ${error?.message || error}`);
    }

    process.exit(0);
};

retryCollectionPayouts();