Skip to content

Commit

Permalink
fix: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
srindom committed Jan 30, 2024
1 parent 6ca355b commit 91a8eaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/medusa/src/api-v2/admin/customers/[id]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const GET = async (req: MedusaRequest, res: MedusaResponse) => {

export const POST = async (req: MedusaRequest, res: MedusaResponse) => {
const updateCustomers = updateCustomersWorkflow(req.scope)
const { result, errors } = await updateCampaigns.run({
const { result, errors } = await updateCustomers.run({
input: {
selector: { id: req.params.id },
update: req.validatedBody as CustomerUpdatableFields,
Expand All @@ -43,7 +43,7 @@ export const DELETE = async (req: MedusaRequest, res: MedusaResponse) => {
const id = req.params.id
const deleteCustomers = deleteCustomersWorkflow(req.scope)

const { errors } = await deleteCampaigns.run({
const { errors } = await deleteCustomers.run({
input: { ids: [id] },
throwOnError: false,
})
Expand Down

0 comments on commit 91a8eaa

Please sign in to comment.