mirror of
https://github.com/trafficlunar/tomodachi-share.git
synced 2026-06-28 06:34:15 +00:00
fix: don't show all fields in profile info api
This commit is contained in:
parent
8dfd1d0b12
commit
c06a92b768
5 changed files with 673 additions and 601 deletions
|
|
@ -12,7 +12,12 @@ export async function GET(request: NextRequest, { params }: { params: Promise<{
|
|||
where: {
|
||||
id: userId,
|
||||
},
|
||||
include: {
|
||||
select: {
|
||||
id: true,
|
||||
name: true,
|
||||
image: true,
|
||||
description: true,
|
||||
createdAt: true,
|
||||
_count: {
|
||||
select: {
|
||||
likes: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue