feat(SW-160): update profile
This commit is contained in:
committed by
Michael Zetterberg
parent
b6e22d51a5
commit
2337d37f1a
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user