Skip to content

Commit

Permalink
chore: renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Burtey committed Feb 2, 2024
1 parent f548dc8 commit 661b999
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions core/api/src/app/merchants/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { MerchantsRepository } from "@/services/mongoose"

export * from "./update-business-map-info"
export * from "./delete-business-map-info"
export * from "./update-business-map"
export * from "./delete-business-map"

const merchants = MerchantsRepository()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { checkedCoordinates, checkedMapTitle, checkedToUsername } from "@/domain
import { CouldNotFindMerchantFromUsernameError } from "@/domain/errors"
import { MerchantsRepository } from "@/services/mongoose"

export const updateBusinessMapInfo = async ({
export const updateBusinessMap = async ({
username,
coordinates: { latitude, longitude },
title,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const BusinessUpdateMapInfoMutation = GT.Field<null, GraphQLAdminContext>({
longitude,
}

const merchant = await Merchants.updateBusinessMapInfo({
const merchant = await Merchants.updateBusinessMap({
username,
title,
coordinates,
Expand Down

0 comments on commit 661b999

Please sign in to comment.