From e477ca8637a8c49602628a6bba2684195790c507 Mon Sep 17 00:00:00 2001 From: koekiebox Date: Sun, 24 Nov 2024 12:58:15 +0100 Subject: [PATCH] feat(2981): fix case issue with lowercase. --- .../backend/src/open_payments/wallet_address/service.test.ts | 4 ++-- packages/backend/src/open_payments/wallet_address/service.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/backend/src/open_payments/wallet_address/service.test.ts b/packages/backend/src/open_payments/wallet_address/service.test.ts index 72e2d73c86..b1f6d79aa0 100644 --- a/packages/backend/src/open_payments/wallet_address/service.test.ts +++ b/packages/backend/src/open_payments/wallet_address/service.test.ts @@ -139,8 +139,8 @@ describe('Open Payments Wallet Address Service', (): void => { ).resolves.toBeUndefined() }) - test('Creating wallet address with case insensitiveness', async (): Promise => { - const url = 'https://alice.me/pay' + test('Creating wallet address with case intensiveness', async (): Promise => { + const url = 'https://Alice.me/pay' await expect( walletAddressService.create({ ...options, diff --git a/packages/backend/src/open_payments/wallet_address/service.ts b/packages/backend/src/open_payments/wallet_address/service.ts index 8c217070d0..6736f2da72 100644 --- a/packages/backend/src/open_payments/wallet_address/service.ts +++ b/packages/backend/src/open_payments/wallet_address/service.ts @@ -182,7 +182,7 @@ async function createWalletAddress( const walletAddress = await WalletAddress.query( deps.knex ).insertGraphAndFetch({ - url: options.url, + url: options.url.toLowerCase(), publicName: options.publicName, assetId: options.assetId, additionalProperties: additionalProperties