修复用户发布下架后审核还有的bug
This commit is contained in:
@@ -254,11 +254,12 @@ func (h *Handler) Offline(c *gin.Context) {
|
||||
if !ok {
|
||||
return
|
||||
}
|
||||
if err := h.service.Offline(ownerID, id); err != nil {
|
||||
item, err := h.service.Offline(ownerID, id)
|
||||
if err != nil {
|
||||
writeListingError(c, err)
|
||||
return
|
||||
}
|
||||
response.OK(c, gin.H{"offline": true})
|
||||
response.OK(c, item)
|
||||
}
|
||||
|
||||
func (h *Handler) ListPublic(c *gin.Context) {
|
||||
|
||||
Reference in New Issue
Block a user