Merge pull request #1611 from tbe/api-pull-fix

api: fix snasphot-pull
This commit is contained in:
André Roth authored and GitHub committed 2026-10-31 23:35:07 +01:00
commit bf06c688ed
1 file changed
+4
+4
View File
@@ -803,6 +803,10 @@ func apiSnapshotsPull(c *gin.Context) {
if err != nil {
return &task.ProcessReturnValue{Code: http.StatusInternalServerError, Value: nil}, err
}
err = taskCollectionFactory.SnapshotCollection().LoadComplete(freshToSnapshot)
if err != nil {
return &task.ProcessReturnValue{Code: http.StatusInternalServerError, Value: nil}, err
}
freshSourceSnapshot, err := taskCollectionFactory.SnapshotCollection().ByName(body.Source)
if err != nil {
return &task.ProcessReturnValue{Code: http.StatusInternalServerError, Value: nil}, err