chore: remove ekata feature

This commit is contained in:
Rafael Taranto 2025-05-12 09:24:35 +01:00
parent 8b3f93d8f0
commit c593b60a4e
12 changed files with 8 additions and 184 deletions

View file

@ -137,12 +137,6 @@ async function updateCustomer (id, data, userToken) {
await db.none(sql, [id])
}
if (data.subscriberInfo) {
await Promise.all([getCustomerById(id), settingsLoader.loadLatest()])
.then(([customer, config]) => sms.getLookup(config, customer.phone))
.then(res => updateSubscriberData(id, res, userToken))
.catch(logger.error)
}
invalidateCustomerNotifications(id, formattedData)
return getCustomerById(id)
}