mirror of
https://github.com/stashapp/stash.git
synced 2025-12-06 16:34:02 +01:00
Ignore non-existing scenes in fingerprint submits (#3039)
This commit is contained in:
parent
4db0e48f73
commit
091950615e
1 changed files with 4 additions and 1 deletions
|
|
@ -3,7 +3,9 @@ package stashbox
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"context"
|
"context"
|
||||||
|
"database/sql"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"mime/multipart"
|
"mime/multipart"
|
||||||
|
|
@ -227,8 +229,9 @@ func (c Client) SubmitStashBoxFingerprints(ctx context.Context, sceneIDs []strin
|
||||||
qb := c.repository.Scene
|
qb := c.repository.Scene
|
||||||
|
|
||||||
for _, sceneID := range ids {
|
for _, sceneID := range ids {
|
||||||
|
// TODO - Find should return an appropriate not found error
|
||||||
scene, err := qb.Find(ctx, sceneID)
|
scene, err := qb.Find(ctx, sceneID)
|
||||||
if err != nil {
|
if err != nil && !errors.Is(err, sql.ErrNoRows) {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue