fix organizationId when setting twilio fields

This commit is contained in:
m5r 2021-08-20 08:31:30 +08:00
parent c0370030ce
commit 9ca0e5d09e

View File

@ -18,7 +18,7 @@ export default resolver.pipe(
return;
}
const organizationId = user.memberships[0]!.id;
const organizationId = user.memberships[0]!.organizationId;
await db.organization.update({
where: { id: organizationId },
data: {