File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
charts/processed_data/charts/processed_data
processed_data/src/graphql Expand file tree Collapse file tree 2 files changed +4
-6
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-rc4
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments