From 73f0282a1a2ddb47774e10de751a4cd96f7ff913 Mon Sep 17 00:00:00 2001 From: Malek salem Date: Wed, 11 Sep 2024 18:43:00 +0100 Subject: [PATCH] unsubcribe from realtime on refine contacts (#1713) * refactor contactsStore & stop realtime when refining contacts * fix supabase local dev env * refactor and fix bug --- .../components/Mining/Table/MiningTable.vue | 67 +++---- frontend/src/stores/contacts.ts | 181 ++++++++++++------ supabase/functions/.env.dev | 2 +- 3 files changed, 155 insertions(+), 95 deletions(-) diff --git a/frontend/src/components/Mining/Table/MiningTable.vue b/frontend/src/components/Mining/Table/MiningTable.vue index af17afc15..874575727 100644 --- a/frontend/src/components/Mining/Table/MiningTable.vue +++ b/frontend/src/components/Mining/Table/MiningTable.vue @@ -73,9 +73,9 @@ :enrichment-realtime-callback="emptyFunction" :enrichment-request-response-callback="emptyFunction" :contacts-to-enrich=" - $contactsStore.selected ?? (contacts as unknown as string[]) + $contactsStore.selectedEmails ?? (contacts as unknown as string[]) " - :enrich-all-contacts="$contactsStore.selected === undefined" + :enrich-all-contacts="$contactsStore.selectedEmails === undefined" />
@@ -655,7 +655,6 @@