fix email
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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
|
||||
}),
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user