prepare multiple phone numbers in one account

This commit is contained in:
m5r
2021-10-21 00:24:18 +02:00
parent cea47251dd
commit 5f6100b0bb
5 changed files with 5 additions and 7 deletions

View File

@ -32,7 +32,7 @@ export default resolver.pipe(resolver.zod(Body), resolver.authorize(), async ({
return;
}
const phoneNumber = organization.phoneNumbers[0];
const phoneNumber = organization.phoneNumbers[0]; // TODO: use the active number, not the first one
if (!phoneNumber) {
throw new NotFoundError();
}