add product information to api/v1/me endpoint (#494)

This commit is contained in:
Matti Nannt
2023-07-06 14:36:39 +02:00
committed by GitHub
parent 47b9867f28
commit 896e91a38b

View File

@@ -12,7 +12,21 @@ export async function GET() {
hashedKey: hashApiKey(apiKey),
},
select: {
environment: true,
environment: {
select: {
id: true,
createdAt: true,
updatedAt: true,
type: true,
product: {
select: {
id: true,
name: true,
},
},
widgetSetupCompleted: true,
},
},
},
});
if (!apiKeyData) {