api: use our shorthand method for returning
This commit is contained in:
parent
3541ee1d7f
commit
3f266269cc
|
@ -328,5 +328,5 @@ fn items_sync(
|
||||||
.fold(false, |x, y| x || y)
|
.fold(false, |x, y| x || y)
|
||||||
}).collect();
|
}).collect();
|
||||||
|
|
||||||
Custom(Status::Ok, Json(Response::Success(resp)))
|
success_resp(resp)
|
||||||
}
|
}
|
Loading…
Reference in a new issue