From 272505669e450d882930cbf594dac39a879b2072 Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Wed, 30 Oct 2024 02:57:24 +0800 Subject: [PATCH] refactor: update amount in stripe --- src/server/trpc/routers/feed/integration.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/trpc/routers/feed/integration.ts b/src/server/trpc/routers/feed/integration.ts index d8c1b37..153c6ca 100644 --- a/src/server/trpc/routers/feed/integration.ts +++ b/src/server/trpc/routers/feed/integration.ts @@ -233,7 +233,7 @@ export const feedIntegrationRouter = router({ await createFeedEvent(workspaceId, { channelId: channelId, eventName: type, - eventContent: `You receive a payment of ${currencyToSymbol(currency)}**${amount}**`, + eventContent: `You **receive** a payment of ${currencyToSymbol(currency)}**${Number(amount) / 100}**`, tags: [], source: 'stripe', senderId: eventId, @@ -253,7 +253,7 @@ export const feedIntegrationRouter = router({ await createFeedEvent(workspaceId, { channelId: channelId, eventName: type, - eventContent: `A payment has been canceled of ${currencyToSymbol(currency)}**${amount}**`, + eventContent: `A payment has been **canceled** of ${currencyToSymbol(currency)}**${Number(amount) / 100}**`, tags: [], source: 'stripe', senderId: eventId,