You've already forked pigallery2
mirror of
https://github.com/bpatrik/pigallery2.git
synced 2025-07-15 01:24:25 +02:00
type fixing
This commit is contained in:
@ -16,7 +16,7 @@ export class MongoGalleryManager implements IGalleryManager{
|
||||
let directoryName = path.basename(relativeDirectoryName);
|
||||
let directoryParent = path.join( path.dirname(relativeDirectoryName),"/");
|
||||
|
||||
DirectoryModel.findOne({name:directoryName, path: directoryParent}).populate('photos').populate('directories').exec( (err,res) =>{
|
||||
DirectoryModel.findOne({name:directoryName, path: directoryParent}).populate('photos').populate('directories').exec( (err,res:any) =>{
|
||||
if(err || !res){
|
||||
return this.indexDirectory(relativeDirectoryName,cb);
|
||||
}
|
||||
|
Reference in New Issue
Block a user