Add failing test for #198

This commit is contained in:
viktorstrate
2021-11-06 12:23:47 +01:00
parent 91a208b1b9
commit b467f2ca61
8 changed files with 128 additions and 14 deletions

View File

@@ -343,7 +343,7 @@ func (r *mutationResolver) UserRemoveRootAlbum(ctx context.Context, userID int,
}
// Reload faces as media might have been deleted
if face_detection.GlobalFaceDetector == nil {
if face_detection.GlobalFaceDetector != nil {
if err := face_detection.GlobalFaceDetector.ReloadFacesFromDatabase(r.Database); err != nil {
return nil, err
}