Skip to content

Commit

Permalink
fix(getFilesForUser): loading w/o start/end date
Browse files Browse the repository at this point in the history
See #70.
  • Loading branch information
simon04 committed Feb 17, 2024
1 parent a8173cb commit 392fd6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/api/ltData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,8 @@ export async function getFilesForUser(
generator: 'allimages',
gaiuser: user,
gailimit: typeof userLimit === 'number' && userLimit <= 500 ? userLimit : 'max',
gaistart: userEnd ? new Date(userEnd).toISOString() : '', // sic! (due to gaidir)
gaiend: userStart ? new Date(userStart).toISOString() : '', // sic! (due to gaidir)
gaistart: userEnd ? new Date(userEnd).toISOString() : undefined, // sic! (due to gaidir)
gaiend: userStart ? new Date(userStart).toISOString() : undefined, // sic! (due to gaidir)
gaisort: 'timestamp',
gaidir: 'older'
};
Expand Down

0 comments on commit 392fd6d

Please sign in to comment.