mirror of
https://github.com/danbulant/Portfolio
synced 2026-07-04 10:30:50 +00:00
refactor: allow unused vars until pagination implementation
This commit is contained in:
parent
f054130c12
commit
60c3f37a65
1 changed files with 2 additions and 1 deletions
|
|
@ -109,12 +109,13 @@ pub async fn create_candidate(
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(unused_variables)]
|
||||||
#[get("/candidates?<field>&<page>")]
|
#[get("/candidates?<field>&<page>")]
|
||||||
pub async fn list_candidates(
|
pub async fn list_candidates(
|
||||||
conn: Connection<'_, Db>,
|
conn: Connection<'_, Db>,
|
||||||
session: AdminAuth,
|
session: AdminAuth,
|
||||||
field: Option<String>,
|
field: Option<String>,
|
||||||
page: Option<u64>,
|
page: Option<u64>,
|
||||||
) -> Result<Json<Vec<ApplicationResponse>>, Custom<String>> {
|
) -> Result<Json<Vec<ApplicationResponse>>, Custom<String>> {
|
||||||
let db = conn.into_inner();
|
let db = conn.into_inner();
|
||||||
let private_key = session.get_private_key();
|
let private_key = session.get_private_key();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue