File tree Expand file tree Collapse file tree 3 files changed +2
-8
lines changed Expand file tree Collapse file tree 3 files changed +2
-8
lines changed Original file line number Diff line number Diff line change 1
1
export * from "./database/dbConnect" ;
2
- export * from "./database/dbPrereqs" ;
3
2
export * from "./env" ;
4
3
export * from "./error/customError" ;
5
4
export * from "./error/errorHandler" ;
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { LocalWallet } from "@thirdweb-dev/wallets";
3
3
import { AwsKmsWallet } from "@thirdweb-dev/wallets/evm/wallets/aws-kms" ;
4
4
import { FastifyInstance } from "fastify" ;
5
5
import { StatusCodes } from "http-status-codes" ;
6
- import { LocalFileStorage , connectToDatabase , env } from "../../../core" ;
6
+ import { LocalFileStorage , env } from "../../../core" ;
7
7
import { createWalletDetails } from "../../../src/db/wallets/createWalletDetails" ;
8
8
import { standardResponseSchema } from "../../helpers/sharedApiSchemas" ;
9
9
import { getAWSKMSWallet , getGCPKeyWalletAddress } from "../../helpers/wallets" ;
@@ -177,9 +177,6 @@ export async function addWallet(fastify: FastifyInstance) {
177
177
throw new Error ( `Wallet Type ${ walletType } is not supported` ) ;
178
178
}
179
179
180
- const dbInstance = await connectToDatabase ( ) ;
181
-
182
- await dbInstance . destroy ( ) ;
183
180
reply . status ( StatusCodes . OK ) . send ( {
184
181
result : {
185
182
walletAddress,
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { LocalWallet } from "@thirdweb-dev/wallets";
3
3
import { AwsKmsWallet } from "@thirdweb-dev/wallets/evm/wallets/aws-kms" ;
4
4
import { FastifyInstance } from "fastify" ;
5
5
import { StatusCodes } from "http-status-codes" ;
6
- import { LocalFileStorage , connectToDatabase , env } from "../../../core" ;
6
+ import { LocalFileStorage , env } from "../../../core" ;
7
7
import { createWalletDetails } from "../../../src/db/wallets/createWalletDetails" ;
8
8
import { standardResponseSchema } from "../../helpers/sharedApiSchemas" ;
9
9
import {
@@ -69,7 +69,6 @@ export async function createEOAWallet(fastify: FastifyInstance) {
69
69
const { walletType } = request . body ;
70
70
request . log . info ( `walletType: ${ walletType } ` ) ;
71
71
72
- const dbInstance = await connectToDatabase ( ) ;
73
72
if ( walletType === WalletConfigType . aws_kms ) {
74
73
if (
75
74
! env . AWS_REGION ||
@@ -137,7 +136,6 @@ export async function createEOAWallet(fastify: FastifyInstance) {
137
136
} ) ;
138
137
}
139
138
140
- await dbInstance . destroy ( ) ;
141
139
if ( ! walletAddress ) {
142
140
throw new Error ( "Could not create wallet" ) ;
143
141
}
You can’t perform that action at this time.
0 commit comments