fix: sms credits follow up (#21304)
* address mrge review comments * code clean up * fix type error --------- Co-authored-by: CarinaWolli <[email protected]>
This commit is contained in:
1 parent
8d675fd8b6
commit
553eab59e6
8 files changed
+10
-11
No files matched your search
@@ -76,7 +76,7 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {
|
||||
const creditService = new CreditService();
|
||||
|
||||
if (countryCode === "US" || countryCode === "CA") {
|
||||
// SMS to US and CA are free on a team plan
|
||||
// SMS to US and CA are free
|
||||
let teamIdToCharge = parsedTeamId;
|
||||
|
||||
if (!teamIdToCharge && parsedUserId) {
|
||||
@@ -100,7 +100,7 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {
|
||||
credits: 0,
|
||||
});
|
||||
|
||||
return res.status(200).send(`SMS to US and CA are free on a team plan. Credits set to 0`);
|
||||
return res.status(200).send(`SMS to US and CA are free. Credits set to 0`);
|
||||
}
|
||||
|
||||
let orgId;
|
||||
|
||||
Reference in new issue
Block a user