From 388dcb015970b9648a56b92954ea291aacd4cb83 Mon Sep 17 00:00:00 2001 From: Kevand Date: Wed, 4 Feb 2026 01:31:14 +0000 Subject: [PATCH] changed invite link to env variable, not settings app_url. --- pb_hooks/main.pb.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pb_hooks/main.pb.js b/pb_hooks/main.pb.js index cccaaaa..bee1853 100644 --- a/pb_hooks/main.pb.js +++ b/pb_hooks/main.pb.js @@ -76,7 +76,7 @@ onRecordAfterCreateSuccess((e) => { const email = e.record.email(); const token = e.record.get('token'); - const appUrl = e.app.settings().meta.appURL; + const appUrl = $os.getenv('ACCOUNTS_URL'); const inviteLink = `${appUrl}/accept-invite?token=${token}` const message = new MailerMessage({