diff --git a/core/api/src/app/merchants/delete-business-map-info.ts b/core/api/src/app/merchants/delete-business-map.ts similarity index 100% rename from core/api/src/app/merchants/delete-business-map-info.ts rename to core/api/src/app/merchants/delete-business-map.ts diff --git a/core/api/src/app/merchants/index.ts b/core/api/src/app/merchants/index.ts index 9cb6675b457..eae7d3f4675 100644 --- a/core/api/src/app/merchants/index.ts +++ b/core/api/src/app/merchants/index.ts @@ -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() diff --git a/core/api/src/app/merchants/update-business-map-info.ts b/core/api/src/app/merchants/update-business-map.ts similarity index 96% rename from core/api/src/app/merchants/update-business-map-info.ts rename to core/api/src/app/merchants/update-business-map.ts index c63ae4ad02e..fbd28650821 100644 --- a/core/api/src/app/merchants/update-business-map-info.ts +++ b/core/api/src/app/merchants/update-business-map.ts @@ -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, diff --git a/core/api/src/graphql/admin/root/mutation/business-update-map-info.ts b/core/api/src/graphql/admin/root/mutation/business-update-map-info.ts index 92060f0bf75..5a0ad4b5783 100644 --- a/core/api/src/graphql/admin/root/mutation/business-update-map-info.ts +++ b/core/api/src/graphql/admin/root/mutation/business-update-map-info.ts @@ -44,7 +44,7 @@ const BusinessUpdateMapInfoMutation = GT.Field({ longitude, } - const merchant = await Merchants.updateBusinessMapInfo({ + const merchant = await Merchants.updateBusinessMap({ username, title, coordinates,