fix email

This commit is contained in:
2026-01-27 12:20:49 -03:00
parent 00f17afbad
commit 9ad9457260
3 changed files with 4 additions and 3 deletions

View File

@@ -44,6 +44,7 @@ export const workspaceMiddleware = async (
const url = new URL(request.url)
const user = context.get(userContext)!
console.debug('Hit on workspace middelware')
const r = await req({
url: `/users/${user.sub}/orgs?limit=25`,
request,

View File

@@ -98,7 +98,7 @@ export async function action({ request, context }: Route.ActionArgs) {
org_id,
name,
cnpj,
email: `org+${cnpj}@${INTERNAL_EMAIL_DOMAIN}`,
email: user.email,
created_by: { id: user.sub, name: user.name },
...body
}),

View File

@@ -12,8 +12,8 @@ IUGU_API_TOKEN: str = os.getenv('IUGU_API_TOKEN') # type: ignore
IUGU_TEST_MODE: bool = os.getenv('AWS_LAMBDA_FUNCTION_NAME') is None
IUGU_POSTBACK_URL = 'https://zjg09ppxq8.execute-api.sa-east-1.amazonaws.com'
HTTP_CONNECT_TIMEOUT = int(os.environ.get('HTTP_CONNECT_TIMEOUT', 1))
HTTP_READ_TIMEOUT = int(os.environ.get('HTTP_READ_TIMEOUT', 3))
HTTP_CONNECT_TIMEOUT = int(os.environ.get('HTTP_CONNECT_TIMEOUT', 2))
HTTP_READ_TIMEOUT = int(os.environ.get('HTTP_READ_TIMEOUT', 6))
BUCKET_NAME: str = os.getenv('BUCKET_NAME') # type: ignore