Skip to content

Commit c02f0a5

Browse files
committed
Fix
1 parent 9837929 commit c02f0a5

File tree

2 files changed

+9
-14
lines changed

2 files changed

+9
-14
lines changed

fplus-lib/src/core/application/file.rs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,10 @@ pub struct ApplicationFile {
7474
pub struct ApplicationResponse {
7575
#[serde(flatten)]
7676
pub file: ApplicationFile,
77-
#[serde(
78-
rename = "Issue Reporter Handle",
79-
skip_serializing_if = "Option::is_none"
80-
)]
77+
#[serde(rename = "Issue Reporter Handle")]
8178
pub issue_reporter_handle: Option<String>,
82-
#[serde(skip_serializing_if = "Option::is_none")]
83-
pub repo: Option<String>,
84-
#[serde(skip_serializing_if = "Option::is_none")]
85-
pub owner: Option<String>,
79+
pub repo: String,
80+
pub owner: String,
8681
}
8782

8883
#[derive(Serialize, Deserialize, Debug, Clone, Default)]

fplus-lib/src/core/mod.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -521,8 +521,8 @@ impl LDNApplication {
521521
all_apps.push(ApplicationResponse {
522522
file: app_file,
523523
issue_reporter_handle: app.issue_reporter_handle,
524-
repo: Some(app.repo),
525-
owner: Some(app.owner),
524+
repo: app.repo,
525+
owner: app.owner,
526526
});
527527
}
528528
}
@@ -557,8 +557,8 @@ impl LDNApplication {
557557
apps.push(ApplicationResponse {
558558
file: app,
559559
issue_reporter_handle: app_model.issue_reporter_handle,
560-
repo: None,
561-
owner: None,
560+
repo: app_model.repo,
561+
owner: app_model.owner,
562562
});
563563
}
564564
//if error, don't push into apps
@@ -1750,8 +1750,8 @@ impl LDNApplication {
17501750
ApplicationResponse {
17511751
file: app,
17521752
issue_reporter_handle: app_model.issue_reporter_handle,
1753-
repo: None,
1754-
owner: None,
1753+
repo: app_model.repo,
1754+
owner: app_model.owner,
17551755
},
17561756
));
17571757
}

0 commit comments

Comments
 (0)