diff --git a/wondrous-bot-admin/src/components/Settings/CustomizeBanners/index.tsx b/wondrous-bot-admin/src/components/Settings/CustomizeBanners/index.tsx index da04081df..6e163f44a 100644 --- a/wondrous-bot-admin/src/components/Settings/CustomizeBanners/index.tsx +++ b/wondrous-bot-admin/src/components/Settings/CustomizeBanners/index.tsx @@ -372,10 +372,7 @@ const CustomizeBanners = () => { } await deleteBanner({ variables: { - orgId: activeOrg?.id, - input: { - assetId, - }, + orgAssetId: assetId, }, refetchQueries: [GET_ORG_CUSTOM_ASSETS], onCompleted, diff --git a/wondrous-bot-admin/src/graphql/mutations/orgAsset.ts b/wondrous-bot-admin/src/graphql/mutations/orgAsset.ts index 02bfde00c..964a900b4 100644 --- a/wondrous-bot-admin/src/graphql/mutations/orgAsset.ts +++ b/wondrous-bot-admin/src/graphql/mutations/orgAsset.ts @@ -10,8 +10,8 @@ export const UPSERT_ORG_CUSTOM_BANNER = gql` `; export const DELETE_ORG_BANNER = gql` - mutation deleteOrgBanner($orgId: ID!, $input: OrgBannerDeleteInput) { - deleteOrgBanner(orgId: $orgId, input: $input) { + mutation deleteOrgCustomAsset($orgAssetId: ID!) { + deleteOrgCustomAsset(orgAssetId: $orgAssetId) { success } }