From e73fd6a9b21dddf0ac324d30ab3e151bc7eddb98 Mon Sep 17 00:00:00 2001 From: jc0b Date: Thu, 30 Jul 2020 21:48:23 +0200 Subject: Hopefully improved performance of auth endpoint at scale --- api/opendc/models/prefab.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'api/opendc/models/prefab.py') diff --git a/api/opendc/models/prefab.py b/api/opendc/models/prefab.py index 2d20208c..3d5dcf54 100644 --- a/api/opendc/models/prefab.py +++ b/api/opendc/models/prefab.py @@ -28,5 +28,5 @@ class Prefab(Model): # OpenDC-authored objects don't necessarily have an authorId # return - def get_all(): - return DB.fetch_all({}, Prefab.collection_name) + def get_all(query): + return DB.fetch_all(query, Prefab.collection_name) -- cgit v1.2.3