todosrht-lmtp: Commit transaction before calling exec_gql

Commit the current transaction before calling exec_gql to ensure that
the senderId passed to the GraphQL API is always valid.
This commit is contained in:
Adnan Maolood 2022-04-10 19:32:21 -04:00 committed by Drew DeVault
parent a250ca81ff
commit 67c96a4a54
1 changed files with 3 additions and 0 deletions

View File

@ -137,6 +137,9 @@ class MailHandler:
print("Rejected, insufficient permissions")
return "550 You do not have permission to post on this tracker."
# Need to commit in case a new participant was created
db.session.commit()
valid = Validation({})
input = {