From e213d0cc08c55d2632be50df082f4cbcd58e3218 Mon Sep 17 00:00:00 2001 From: Marcel Lorbeer Date: Wed, 12 Jul 2023 18:11:30 +0200 Subject: [PATCH] Query Everything if no filter provided --- src/Collection.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Collection.ts b/src/Collection.ts index 991e640..084e072 100644 --- a/src/Collection.ts +++ b/src/Collection.ts @@ -236,7 +236,7 @@ export class Collection { * @see {@link EntryData} for more information about entry data. * */ - async getEntries(filter: EntryData): Promise { + async getEntries(filter: EntryData={}): Promise { try { const result = await fetch(`https://api.marcsync.dev/v1/entries/${this._collectionName}?methodOverwrite=GET`, { method: "PATCH",