Skip to content

Commit 3ff36a2

Browse files
committed
🚧 server: add minor changes to pass checks
1 parent bd21556 commit 3ff36a2

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
@@ -420,7 +420,7 @@ function decrypt(base64Secret: string, base64Iv: string, secretKey: string): str
420420
const card = await createCard(
421421
credential.pandaId,
422422
SIGNATURE_PRODUCT_ID,
423-
limit == null ? undefined : limit * USD_TO_CENTS,
423+
limit == null ? undefined : limit * 100,
424424
);
425425
let mode = 0;
426426
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)