api: use our shorthand method for returning

This commit is contained in:
Peter Cai 2020-02-22 16:55:16 +08:00
parent 3541ee1d7f
commit 3f266269cc
No known key found for this signature in database
GPG Key ID: 71F5FB4E4F3FD54F
1 changed files with 1 additions and 1 deletions

View File

@ -328,5 +328,5 @@ fn items_sync(
.fold(false, |x, y| x || y)
}).collect();
Custom(Status::Ok, Json(Response::Success(resp)))
success_resp(resp)
}