fix(api): handle concurrent snapshot deletion during list endpoint

This commit is contained in:
adam magued committed 2026-10-14 15:55:53 +03:00
1 parent 516fcc6bfd
commit 74c13f73f2
1 file changed
+3
+3
View File
@@ -36,6 +36,9 @@ func apiSnapshotsList(c *gin.Context) {
err := collection.ForEachSorted(SortMethodString, func(snapshot *deb.Snapshot) error {
err := collection.LoadComplete(snapshot)
if err != nil {
if err == database.ErrNotFound {
return nil
}
return err
}