You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by hu...@apache.org on 2020/09/08 18:50:25 UTC
[incubator-ponymail-foal] 02/02: fix index reference
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 <hu...@apache.org>
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(