Skip to content

Commit

Permalink
Update delete banner
Browse files Browse the repository at this point in the history
  • Loading branch information
juniusfree committed Mar 19, 2024
1 parent 21f5481 commit 35f0668
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -372,10 +372,7 @@ const CustomizeBanners = () => {
}
await deleteBanner({
variables: {
orgId: activeOrg?.id,
input: {
assetId,
},
orgAssetId: assetId,
},
refetchQueries: [GET_ORG_CUSTOM_ASSETS],
onCompleted,
Expand Down
4 changes: 2 additions & 2 deletions wondrous-bot-admin/src/graphql/mutations/orgAsset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit 35f0668

Please sign in to comment.