Merged in chore/move-enter-details (pull request #2778)
Chore/move enter details Approved-by: Anton Gunnarsson
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import { cache } from "react"
|
||||
|
||||
import { serverClient } from "../../trpc"
|
||||
|
||||
import type { GetSavedPaymentCardsInput } from "@scandic-hotels/trpc/routers/user/input"
|
||||
|
||||
export const getSavedPaymentCardsSafely = cache(
|
||||
async function getMemoizedSavedPaymentCardsSafely(
|
||||
input: GetSavedPaymentCardsInput
|
||||
) {
|
||||
const caller = await serverClient()
|
||||
return caller.user.safePaymentCards(input)
|
||||
}
|
||||
)
|
||||
Reference in New Issue
Block a user