Skip to content

Commit e208ebc

Browse files
committed
service-utils: polish usage hit error code
1 parent 94e4dc9 commit e208ebc

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.changeset/tidy-ads-check.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@thirdweb-dev/service-utils": patch
3+
---
4+
5+
polish usage hit error code

packages/service-utils/src/core/usageLimit/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export async function usageLimit(
3838
return {
3939
usageLimited: true,
4040
status: 403,
41-
errorMessage: `You've used all of your total usage limit for Storage Pinning. Please add your payment method at https://thirdweb.com/dashboard/settings/billing.`,
41+
errorMessage: `You've used all of your total usage credits for Storage Pinning. Please add your payment method at https://thirdweb.com/dashboard/settings/billing.`,
4242
errorCode: "PAYMENT_METHOD_REQUIRED",
4343
};
4444
}
@@ -50,7 +50,7 @@ export async function usageLimit(
5050
return {
5151
usageLimited: true,
5252
status: 403,
53-
errorMessage: `You've used all of your total usage limit for Embedded Wallets. Please add your payment method at https://thirdweb.com/dashboard/settings/billing.`,
53+
errorMessage: `You've used all of your total usage credits for Embedded Wallets. Please add your payment method at https://thirdweb.com/dashboard/settings/billing.`,
5454
errorCode: "PAYMENT_METHOD_REQUIRED",
5555
};
5656
}

packages/service-utils/src/core/usageLimit/usageLimit.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ describe("usageLimit", () => {
6464
expect(result).toEqual({
6565
usageLimited: true,
6666
status: 403,
67-
errorMessage: `You've used all of your total usage limit for Storage Pinning. Please add your payment method at https://thirdweb.com/dashboard/settings/billing.`,
67+
errorMessage: `You've used all of your total usage credits for Storage Pinning. Please add your payment method at https://thirdweb.com/dashboard/settings/billing.`,
6868
errorCode: "PAYMENT_METHOD_REQUIRED",
6969
});
7070
});

0 commit comments

Comments
 (0)