return the snapshot in apiSnapshotsCreate

In v1.4.0 it [returned the snapshot](https://github.com/aptly-dev/aptly/blob/v1.4.0/api/snapshot.go#L168), but this was removed (by accident) in v1.5.0. This adds it back.
This commit is contained in:
Samuel Bachmann
2022-12-22 15:00:53 +01:00
committed by Benj Fassbind
parent 2020ca9971
commit ced5ac7876

View File

@@ -160,7 +160,7 @@ func apiSnapshotsCreate(c *gin.Context) {
if err != nil {
return &task.ProcessReturnValue{Code: http.StatusBadRequest, Value: nil}, err
}
return &task.ProcessReturnValue{Code: http.StatusCreated, Value: nil}, nil
return &task.ProcessReturnValue{Code: http.StatusCreated, Value: snapshot}, nil
})
}