diff --git a/app/api/views/new_random_alias.py b/app/api/views/new_random_alias.py index 519fd1c4..19864150 100644 --- a/app/api/views/new_random_alias.py +++ b/app/api/views/new_random_alias.py @@ -28,6 +28,7 @@ def new_random_alias(): hostname = request.args.get("hostname") gen_email = GenEmail.create_new_gen_email(user_id=user.id) + db.session.commit() if hostname: AliasUsedOn.create(gen_email_id=gen_email.id, hostname=hostname) diff --git a/server.py b/server.py index 0ea622e3..f3619c83 100644 --- a/server.py +++ b/server.py @@ -99,7 +99,7 @@ def fake_data(): password="password", activated=True, is_admin=True, - can_use_custom_domain=True + can_use_custom_domain=True, ) db.session.commit()