forked from jsnbuchanan/crowd-funder-for-time-pwa
adjust so DB calls go to the factory
This commit is contained in:
@@ -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 (?, ?, ?, ?, ?, ?)`,
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user