Query Everything if no filter provided

This commit is contained in:
MarcTheDev committed 2023-07-12 18:11:30 +02:00
1 parent 1681f7b390
commit e213d0cc08
1 file changed
+1 -1
+1 -1
View File
@@ -236,7 +236,7 @@ export class Collection {
* @see {@link EntryData} for more information about entry data.
*
*/
async getEntries(filter: EntryData): Promise<Entry[]> {
async getEntries(filter: EntryData={}): Promise<Entry[]> {
try {
const result = await fetch(`https://api.marcsync.dev/v1/entries/${this._collectionName}?methodOverwrite=GET`, {
method: "PATCH",