adjust so DB calls go to the factory

This commit is contained in:
2025-05-26 13:59:34 -06:00
parent bb0d8942b8
commit 0e10847cba
10 changed files with 86 additions and 19 deletions

View File

@@ -29,6 +29,7 @@ import { KeyMeta } from "../libs/crypto/vc";
import { createPeerDid } from "../libs/crypto/vc/didPeer";
import { registerCredential } from "../libs/crypto/vc/passkeyDidPeer";
import { logger } from "../utils/logger";
import { PlatformServiceFactory } from "@/services/PlatformServiceFactory";
export interface GiverReceiverInputInfo {
did?: string;
@@ -552,7 +553,8 @@ export const generateSaveAndActivateIdentity = async (): Promise<string> => {
});
// add to the new sql db
await databaseService.run(
const platformService = PlatformServiceFactory.getInstance();
await platformService.dbExec(
`INSERT INTO accounts (dateCreated, derivationPath, did, identity, mnemonic, publicKeyHex)
VALUES (?, ?, ?, ?, ?, ?)`,
[