Untitled
unknown
plain_text
2 years ago
477 B
5
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