Skip to content

Commit

Permalink
fix: rename publishRevision to publishContentModel
Browse files Browse the repository at this point in the history
  • Loading branch information
adrians5j committed May 1, 2020
1 parent f21ca32 commit 3f29ca1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const PublishButton = () => {
},
});

const { error } = response.data.publishRevision;
const { error } = response.data.publishContentModel;
if (error) {
return showSnackbar(error.message);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import gql from "graphql-tag";

export const PUBLISH_REVISION = gql`
mutation CmsPublishRevision($id: ID!) {
publishRevision(id: $id) {
mutation CmsPublishContentModel($id: ID!) {
publishContentModel(id: $id) {
data {
id
status
Expand Down

0 comments on commit 3f29ca1

Please sign in to comment.