Skip to content

Commit 4e4690e

Browse files
authored
fixed gh build issue with not able to find a module (#139)
1 parent 2fbad80 commit 4e4690e

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

core/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
export * from "./database/dbConnect";
2-
export * from "./database/dbPrereqs";
32
export * from "./env";
43
export * from "./error/customError";
54
export * from "./error/errorHandler";

server/api/wallet/addWallet.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { LocalWallet } from "@thirdweb-dev/wallets";
33
import { AwsKmsWallet } from "@thirdweb-dev/wallets/evm/wallets/aws-kms";
44
import { FastifyInstance } from "fastify";
55
import { StatusCodes } from "http-status-codes";
6-
import { LocalFileStorage, connectToDatabase, env } from "../../../core";
6+
import { LocalFileStorage, env } from "../../../core";
77
import { createWalletDetails } from "../../../src/db/wallets/createWalletDetails";
88
import { standardResponseSchema } from "../../helpers/sharedApiSchemas";
99
import { getAWSKMSWallet, getGCPKeyWalletAddress } from "../../helpers/wallets";
@@ -177,9 +177,6 @@ export async function addWallet(fastify: FastifyInstance) {
177177
throw new Error(`Wallet Type ${walletType} is not supported`);
178178
}
179179

180-
const dbInstance = await connectToDatabase();
181-
182-
await dbInstance.destroy();
183180
reply.status(StatusCodes.OK).send({
184181
result: {
185182
walletAddress,

server/api/wallet/createEOAWallet.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { LocalWallet } from "@thirdweb-dev/wallets";
33
import { AwsKmsWallet } from "@thirdweb-dev/wallets/evm/wallets/aws-kms";
44
import { FastifyInstance } from "fastify";
55
import { StatusCodes } from "http-status-codes";
6-
import { LocalFileStorage, connectToDatabase, env } from "../../../core";
6+
import { LocalFileStorage, env } from "../../../core";
77
import { createWalletDetails } from "../../../src/db/wallets/createWalletDetails";
88
import { standardResponseSchema } from "../../helpers/sharedApiSchemas";
99
import {
@@ -69,7 +69,6 @@ export async function createEOAWallet(fastify: FastifyInstance) {
6969
const { walletType } = request.body;
7070
request.log.info(`walletType: ${walletType}`);
7171

72-
const dbInstance = await connectToDatabase();
7372
if (walletType === WalletConfigType.aws_kms) {
7473
if (
7574
!env.AWS_REGION ||
@@ -137,7 +136,6 @@ export async function createEOAWallet(fastify: FastifyInstance) {
137136
});
138137
}
139138

140-
await dbInstance.destroy();
141139
if (!walletAddress) {
142140
throw new Error("Could not create wallet");
143141
}

0 commit comments

Comments
 (0)