File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
charts/processed_data/charts/processed_data
processed_data/src/graphql Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -5,4 +5,4 @@ type: application
55
66version : 0.1.0
77
8- appVersion : 0.1.0-rc2
8+ appVersion : 0.1.0-rc3
Original file line number Diff line number Diff line change @@ -123,15 +123,14 @@ 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 ( )
133132 . map ( AutoProcProgram :: from)
134- . collect ( ) )
133+ )
135134 }
136135}
137136
You can’t perform that action at this time.
0 commit comments