Skip to content

Commit 77472d8

Browse files
committed
chore: rename paymentsCount method
1 parent 0ddd3e5 commit 77472d8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

pages/api/payments/count/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default async (req: any, res: any): Promise<void> => {
66
await setSession(req, res)
77
const userId = req.session.userId
88

9-
const resJSON = await CacheGet.paymentListCount(userId)
9+
const resJSON = await CacheGet.paymentsCount(userId)
1010
res.status(200).json(resJSON)
1111
}
1212
}

redis/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export const CacheGet = {
8585
addressBalance: async (addressString: string): Promise<AddressPaymentInfo> => {
8686
return await getBalanceForAddress(addressString)
8787
},
88-
paymentListCount: async (userId: string) => {
88+
paymentsCount: async (userId: string) => {
8989
return await getCachedPaymentsCountForUser(userId)
9090
}
9191
}

0 commit comments

Comments
 (0)