1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2024-12-10 11:10:35 +02:00

Remove listDirectory check

This commit is contained in:
mcdamo 2021-05-03 22:36:56 +10:00
parent b64f66c253
commit ba8ebca21c

View File

@ -72,16 +72,6 @@ export class GalleryMWs {
}
try {
const directory = await ObjectManagers.getInstance()
.GalleryManager.listDirectory(directoryName,
parseInt(req.query[QueryParams.gallery.knownLastModified] as string, 10),
parseInt(req.query[QueryParams.gallery.knownLastScanned] as string, 10));
if (directory == null) {
req.resultPipe = new ContentWrapper(null, null, true);
return next();
}
res.set('Content-Type', 'application/zip');
res.set('Content-Disposition', 'attachment; filename=Gallery.zip');