feat(SW-160): update profile

This commit is contained in:
Simon Emanuelsson
2024-07-17 16:12:18 +02:00
committed by Michael Zetterberg
parent b6e22d51a5
commit 2337d37f1a
32 changed files with 459 additions and 244 deletions

View File

@@ -79,6 +79,7 @@ async function getVerifiedUser({ session }: { session: Session }) {
console.error(verifiedData.error)
return null
}
return verifiedData
}
@@ -335,12 +336,9 @@ export const userQueryRouter = router({
.input(staysInput)
.query(async ({ ctx, input }) => {
const { limit, cursor } = input
const params = new URLSearchParams()
params.set("limit", limit.toString())
const params: Record<string, string> = { limit }
if (cursor) {
params.set("offset", cursor.toString())
params.offset = cursor
}
const apiResponse = await api.get(
@@ -403,11 +401,9 @@ export const userQueryRouter = router({
.query(async ({ ctx, input }) => {
const { limit, cursor } = input
const params = new URLSearchParams()
params.set("limit", limit.toString())
const params: Record<string, string> = { limit }
if (cursor) {
params.set("offset", cursor.toString())
params.offset = cursor
}
const apiResponse = await api.get(