Merged in fix/unpin-zod-version (pull request #1419)
Unpin zod version Approved-by: Linus Flood
This commit is contained in:
@@ -100,7 +100,7 @@
|
||||
"superjson": "^2.2.1",
|
||||
"usehooks-ts": "3.1.0",
|
||||
"uuid": "^11.0.5",
|
||||
"zod": "3.22.4",
|
||||
"zod": "^3.22.4",
|
||||
"zustand": "^4.5.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -44,7 +44,6 @@ const getVerifiedUserSuccessCounter = meter.createCounter(
|
||||
"trpc.user.get-success"
|
||||
)
|
||||
const getVerifiedUserFailCounter = meter.createCounter("trpc.user.get-fail")
|
||||
const getProfileCounter = meter.createCounter("trpc.user.profile")
|
||||
const getProfileSuccessCounter = meter.createCounter(
|
||||
"trpc.user.profile-success"
|
||||
)
|
||||
@@ -275,7 +274,7 @@ const getCreditCards = cache(
|
||||
const expirationDate = dt(card.expirationDate).startOf("day")
|
||||
const currentDate = dt().startOf("day")
|
||||
return expirationDate > currentDate
|
||||
} catch (error) {
|
||||
} catch (_) {
|
||||
return false
|
||||
}
|
||||
}
|
||||
@@ -303,7 +302,7 @@ export const userQueryRouter = router({
|
||||
return null
|
||||
}
|
||||
|
||||
if ("error" in data) {
|
||||
if ("error" in data && data.error) {
|
||||
return data
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user