From ab88055ffe55a329d055f3c3d364d6e1fd714f52 Mon Sep 17 00:00:00 2001 From: Elias Schneider Date: Thu, 28 Apr 2022 16:51:18 +0200 Subject: [PATCH] Add indexes to collection setup --- .setup/data/collections.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.setup/data/collections.ts b/.setup/data/collections.ts index 7b9dcee..fe5cc33 100644 --- a/.setup/data/collections.ts +++ b/.setup/data/collections.ts @@ -55,7 +55,14 @@ export default [ default: false, }, ], - indexes: [], + indexes: [ + { + key: "expiresAt", + type: "key", + attributes: ["expiresAt"], + orders: ["ASC"], + }, + ], }, { $id: "shareSecurity",