18 lines
526 B
JavaScript
18 lines
526 B
JavaScript
const { withClient } = require("../rr/withClient");
|
|
|
|
async function insertCustomer({ bodyshopId, payload }) {
|
|
return withClient(bodyshopId, async (client, routing) => {
|
|
const res = await client.insertCustomer(payload, { routing });
|
|
return res;
|
|
});
|
|
}
|
|
|
|
async function updateCustomer({ bodyshopId, payload }) {
|
|
return withClient(bodyshopId, async (client, routing) => {
|
|
const res = await client.updateCustomer(payload, { routing });
|
|
return res;
|
|
});
|
|
}
|
|
|
|
module.exports = { insertCustomer, updateCustomer };
|