mirror of
https://github.com/baptisteArno/typebot.io.git
synced 2026-06-16 21:10:26 +08:00
🐛 Attempt to fix getPhoneNumber not working
This commit is contained in:
parent
e8acb3642b
commit
fdb7d257ff
@ -66,9 +66,8 @@ const getCredentials = async (
|
||||
systemUserAccessToken: input.systemToken,
|
||||
phoneNumberId: input.phoneNumberId,
|
||||
};
|
||||
console.log("Debug: input", input, env.ADMIN_EMAIL, user.email);
|
||||
if (!input.credentialsId) return;
|
||||
const credentials = await prisma.credentials.findUnique({
|
||||
const credentials = await prisma.credentials.findFirst({
|
||||
where: {
|
||||
id: input.credentialsId,
|
||||
workspace: env.ADMIN_EMAIL?.includes(user.email)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user