This commit is contained in:
Liang Ding 2022-12-17 17:08:42 +08:00
parent a8201b8474
commit d13adf234b
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
4 changed files with 124 additions and 27 deletions

View file

@ -62,7 +62,7 @@ func diffRepoSnapshots(c *gin.Context) {
left := arg["left"].(string)
right := arg["right"].(string)
adds, updates, removes, err := model.DiffRepoSnapshots(left, right)
diff, err := model.DiffRepoSnapshots(left, right)
if nil != err {
ret.Code = -1
ret.Msg = err.Error()
@ -70,9 +70,7 @@ func diffRepoSnapshots(c *gin.Context) {
}
ret.Data = map[string]interface{}{
"adds": adds,
"updates": updates,
"removes": removes,
"diff": diff,
}
}