chore: clean up

This commit is contained in:
liyasthomas
2021-11-02 19:45:41 +05:30
parent 6db99c9e37
commit 5f0800760f
3 changed files with 1 additions and 20 deletions

View File

@@ -460,13 +460,6 @@ watch(
} }
) )
watch(
() => pendingInvites,
() => {
console.log(pendingInvites)
}
)
const removeInvitee = async (id: string) => { const removeInvitee = async (id: string) => {
const result = await revokeTeamInvitation(id)() const result = await revokeTeamInvitation(id)()
if (E.isLeft(result)) { if (E.isLeft(result)) {

View File

@@ -88,7 +88,7 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { ref, watchEffect } from "@nuxtjs/composition-api" import { ref } from "@nuxtjs/composition-api"
import * as E from "fp-ts/Either" import * as E from "fp-ts/Either"
import { useGQLQuery } from "~/helpers/backend/GQLClient" import { useGQLQuery } from "~/helpers/backend/GQLClient"
import { import {
@@ -117,10 +117,6 @@ const myTeams = useGQLQuery<
pollDuration: 5000, pollDuration: 5000,
}) })
watchEffect(() => {
console.log(myTeams)
})
const displayModalAdd = (shouldDisplay: boolean) => { const displayModalAdd = (shouldDisplay: boolean) => {
showModalAdd.value = shouldDisplay showModalAdd.value = shouldDisplay
} }

View File

@@ -240,15 +240,12 @@ export const useGQLQuery = <DocType, DocVarType, DocErrorType extends string>(
isStale.value = false isStale.value = false
const invalidateStops = args.updateSubs!.map((sub) => { const invalidateStops = args.updateSubs!.map((sub) => {
console.log("create sub")
return wonkaPipe( return wonkaPipe(
client.value.executeSubscription(sub), client.value.executeSubscription(sub),
onEnd(() => { onEnd(() => {
if (source.value) execute() if (source.value) execute()
}), }),
subscribe(() => { subscribe(() => {
console.log("invalidate!")
return execute() return execute()
}) })
).unsubscribe ).unsubscribe
@@ -260,7 +257,6 @@ export const useGQLQuery = <DocType, DocVarType, DocErrorType extends string>(
onEnd(() => { onEnd(() => {
loading.value = false loading.value = false
isStale.value = false isStale.value = false
console.log("end")
}), }),
subscribe((res) => { subscribe((res) => {
if (res.operation.key === request.value.key) { if (res.operation.key === request.value.key) {
@@ -323,10 +319,6 @@ export const useGQLQuery = <DocType, DocVarType, DocErrorType extends string>(
execute, execute,
}) })
watchEffect(() => {
console.log(JSON.stringify(response))
})
return response return response
} }