features, cleanup and bug fixes #26
1 changed files with 3 additions and 2 deletions
fix compilation error
commit
30626fe8ee
|
|
@ -6,7 +6,7 @@ use actix_web::{
|
|||
use error::AttachmentResponseError;
|
||||
use handlebars::Handlebars;
|
||||
use http::header::CONTENT_TYPE;
|
||||
use serde::Deserialize;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use serde_json::json;
|
||||
|
||||
pub(crate) mod confirmation;
|
||||
|
|
@ -167,6 +167,7 @@ pub(crate) async fn summary(
|
|||
crate::job_offers::job_data(&req, guard.iter(), user.as_ref())
|
||||
};
|
||||
|
||||
#[derive(Serialize)]
|
||||
struct SummaryData {
|
||||
version: &'static str,
|
||||
entries: Vec<JobOfferViewData>,
|
||||
|
|
@ -176,7 +177,7 @@ pub(crate) async fn summary(
|
|||
let data = json!(SummaryData {
|
||||
version: "1",
|
||||
entries: previews,
|
||||
overview: SerializableUrl(req.url_for_static(JOBOFFER_OVERVIEW_ROUTE))
|
||||
overview: SerializableUrl(req.url_for_static(JOBOFFER_OVERVIEW_ROUTE)?)
|
||||
});
|
||||
|
||||
Ok(HttpResponse::Ok()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue