fix: remove override reset on customer data saving via admin

This commit is contained in:
Sérgio Salgado 2022-02-14 15:28:38 +00:00
parent 4ec4ec4917
commit 639dbe8eb1

View file

@ -113,10 +113,7 @@ const setCustomerData = (customerId, infoRequestId, data) => {
INSERT INTO customers_custom_info_requests (customer_id, info_request_id, customer_data) INSERT INTO customers_custom_info_requests (customer_id, info_request_id, customer_data)
VALUES ($1, $2, $3) VALUES ($1, $2, $3)
ON CONFLICT (customer_id, info_request_id) ON CONFLICT (customer_id, info_request_id)
DO UPDATE SET customer_data = $3, DO UPDATE SET customer_data = $3`
override = 'automatic',
override_by = NULL,
override_at = NULL`
return db.none(sql, [customerId, infoRequestId, data]) return db.none(sql, [customerId, infoRequestId, data])
} }