This is an automated email from the ASF dual-hosted git repository. humbedooh pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git
commit 148c9651854db4f7dd3b62c5b3d2e53527ca9168 Author: Daniel Gruno <[email protected]> AuthorDate: Tue Sep 8 20:50:10 2020 +0200 fix index reference --- server/endpoints/email.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/endpoints/email.py b/server/endpoints/email.py index 5e2336f..69a696f 100644 --- a/server/endpoints/email.py +++ b/server/endpoints/email.py @@ -62,7 +62,7 @@ async def process( ] = f"attachment; filename=\"{entry.get('filename')}\"" try: attachment = await session.database.get( - itype="attachment", id=indata.get("file") + index=session.database.dbs.attachment, id=indata.get("file") ) if attachment: blob = base64.decodebytes(
