Skip to content

Commit 295a3ea

Browse files
update appVersion
1 parent 61a4f5c commit 295a3ea

File tree

2 files changed

+4
-6
lines changed
  • charts/processed_data/charts/processed_data
  • processed_data/src/graphql

2 files changed

+4
-6
lines changed

charts/processed_data/charts/processed_data/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ type: application
55

66
version: 0.1.0
77

8-
appVersion: 0.1.0-rc2
8+
appVersion: 0.1.0-rc4

processed_data/src/graphql/mod.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,15 +123,13 @@ impl AutoProcIntegration {
123123
async fn auto_proc_program(
124124
&self,
125125
ctx: &Context<'_>,
126-
) -> async_graphql::Result<Vec<AutoProcProgram>> {
126+
) -> async_graphql::Result<Option<AutoProcProgram>> {
127127
let database = ctx.data::<DatabaseConnection>()?;
128128
Ok(auto_proc_program::Entity::find()
129129
.filter(auto_proc_program::Column::AutoProcProgramId.eq(self.auto_proc_program_id))
130-
.all(database)
130+
.one(database)
131131
.await?
132-
.into_iter()
133-
.map(AutoProcProgram::from)
134-
.collect())
132+
.map(AutoProcProgram::from))
135133
}
136134
}
137135

0 commit comments

Comments
 (0)