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