Skip to content

Commit bfacba6

Browse files
committed
🚧 server: add minor changes to pass checks
1 parent e157717 commit bfacba6

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

‎server/api/card.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ function decrypt(base64Secret: string, base64Iv: string, secretKey: string): str
480480
const card = await createCard(
481481
credential.pandaId,
482482
SIGNATURE_PRODUCT_ID,
483-
limit == null ? undefined : limit * USD_TO_CENTS,
483+
limit == null ? undefined : limit * 100,
484484
);
485485
let mode = 0;
486486
try {

‎server/test/api/card.test.ts‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -464,10 +464,6 @@ describe("authenticated", () => {
464464
it("creates a panda credit card with signature product id", async () => {
465465
vi.spyOn(panda, "createCard").mockResolvedValueOnce({ ...cardTemplate, id: "createCreditCard", last4: "1224" });
466466

467-
const ethCredential = await database.query.credentials.findFirst({
468-
columns: { account: true },
469-
where: eq(credentials.id, "eth"),
470-
});
471467
vi.spyOn(panda, "getApplicationStatus").mockResolvedValueOnce({ id: "pandaId", applicationStatus: "approved" });
472468

473469
const response = await appClient.index.$post({ header: { "test-credential-id": "eth" } });

0 commit comments

Comments
 (0)