From 6ae23293175cc5971e789828c0b0b0317d17048f Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Sat, 20 Jul 2024 07:24:22 -0600 Subject: [PATCH] refactor out unused DB reference --- src/views/ContactGiftingView.vue | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/views/ContactGiftingView.vue b/src/views/ContactGiftingView.vue index cb34a379a..f96d97ec7 100644 --- a/src/views/ContactGiftingView.vue +++ b/src/views/ContactGiftingView.vue @@ -77,8 +77,7 @@ import GiftedDialog from "@/components/GiftedDialog.vue"; import QuickNav from "@/components/QuickNav.vue"; import EntityIcon from "@/components/EntityIcon.vue"; import { NotificationIface } from "@/constants/app"; -import { db, accountsDB } from "@/db/index"; -import { AccountsSchema } from "@/db/tables/accounts"; +import { db } from "@/db/index"; import { Contact } from "@/db/tables/contacts"; import { MASTER_SETTINGS_KEY, Settings } from "@/db/tables/settings"; import { GiverReceiverInputInfo } from "@/libs/endorserServer"; @@ -92,13 +91,8 @@ export default class ContactGiftingView extends Vue { activeDid = ""; allContacts: Array = []; apiServer = ""; - accounts: typeof AccountsSchema; projectId = localStorage.getItem("projectId") || ""; - async beforeCreate() { - accountsDB.open(); - } - async created() { try { await db.open();