use renamed mutation instead of badly named query

This commit is contained in:
Moriz Wahl 2022-03-30 18:22:49 +02:00
parent a0eb707375
commit d4415ee256
2 changed files with 4 additions and 4 deletions

View File

@ -21,7 +21,7 @@ const createMockObject = (comingFrom) => {
push: mockRouterPush,
},
$apollo: {
query: mockAPIcall,
mutate: mockAPIcall,
},
$route: {
params: {

View File

@ -39,7 +39,7 @@
</div>
</template>
<script>
import { sendResetPasswordEmail } from '@/graphql/queries'
import { forgotPassword } from '@/graphql/mutations'
import InputEmail from '@/components/Inputs/InputEmail'
export default {
@ -59,8 +59,8 @@ export default {
methods: {
async onSubmit() {
this.$apollo
.query({
query: sendResetPasswordEmail,
.mutate({
mutation: forgotPassword,
variables: {
email: this.form.email,
},