Query Everything if no filter provided

This commit is contained in:
Marcel Lorbeer 2023-07-12 18:11:30 +02:00
parent 1681f7b390
commit e213d0cc08

View File

@ -236,7 +236,7 @@ export class Collection {
* @see {@link EntryData} for more information about entry data. * @see {@link EntryData} for more information about entry data.
* *
*/ */
async getEntries(filter: EntryData): Promise<Entry[]> { async getEntries(filter: EntryData={}): Promise<Entry[]> {
try { try {
const result = await fetch(`https://api.marcsync.dev/v1/entries/${this._collectionName}?methodOverwrite=GET`, { const result = await fetch(`https://api.marcsync.dev/v1/entries/${this._collectionName}?methodOverwrite=GET`, {
method: "PATCH", method: "PATCH",