Skip to content

Commit ec1271a

Browse files
authored
Add job workplace field to application (#211)
Signed-off-by: Sergio Castaño Arteaga <[email protected]>
1 parent 1c27c19 commit ec1271a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

database/migrations/functions/dashboard/search_applications.sql

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ begin
2424
'state', l.state
2525
)), '{}'::jsonb)
2626
) as job_location,
27+
j.workplace as job_workplace,
2728
p.job_seeker_profile_id,
2829
p.photo_id,
2930
p.name,
@@ -55,6 +56,7 @@ begin
5556
'job_title', job_title,
5657
'job_location', job_location,
5758
'job_seeker_profile_id', job_seeker_profile_id,
59+
'job_workplace', job_workplace,
5860
'photo_id', photo_id,
5961
'name', name,
6062
'last_position', last_position

gitjobs-server/src/templates/dashboard/employer/applications.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use serde_with::skip_serializing_none;
88
use uuid::Uuid;
99

1010
use crate::templates::{
11-
dashboard::employer::jobs::JobSummary,
11+
dashboard::employer::jobs::{JobSummary, Workplace},
1212
helpers::{DATE_FORMAT, build_dashboard_image_url},
1313
misc::Location,
1414
pagination::{NavigationLinks, Pagination},
@@ -48,6 +48,7 @@ pub(crate) struct Application {
4848
job_id: Uuid,
4949
job_title: String,
5050
job_seeker_profile_id: Uuid,
51+
job_workplace: Workplace,
5152

5253
job_location: Option<Location>,
5354
last_position: Option<String>,

0 commit comments

Comments
 (0)