Untitled
unknown
plain_text
a year ago
477 B
3
Indexable
const updatePaymentCheckTime = async (updatableDomain) => { if (!updatableDomain || !updatableDomain.domain) { return; } const domains = await controllers.readDomainsFile(filePath); const updatedDomains = domains.map(item => item.domain === updatableDomain.domain ? { ...item, paymentCheckedAt: todayDateFormatted() } : item ); await controllers.writeDomainsFile(filePath, updatedDomains); console.log(updatedDomains); };
Editor is loading...
Leave a Comment