File tree Expand file tree Collapse file tree
server/routes/instance/httpapi/middleware Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,9 +11,8 @@ export const Instance = {
1111 return InstanceStore . runtime . runPromise ( ( store ) => store . load ( input ) )
1212 } ,
1313 async provide < R > ( input : { directory : string ; init ?: ( ) => Promise < any > ; fn : ( ) => R } ) : Promise < R > {
14- return context . provide (
15- await Instance . load ( { directory : input . directory , init : input . init } ) ,
16- async ( ) => input . fn ( ) ,
14+ return context . provide ( await Instance . load ( { directory : input . directory , init : input . init } ) , async ( ) =>
15+ input . fn ( ) ,
1716 )
1817 } ,
1918 get current ( ) {
Original file line number Diff line number Diff line change @@ -23,10 +23,7 @@ function decode(input: string): string {
2323 }
2424}
2525
26- function makeInstanceContext (
27- store : InstanceStore . Interface ,
28- directory : string ,
29- ) : Effect . Effect < InstanceContext > {
26+ function makeInstanceContext ( store : InstanceStore . Interface , directory : string ) : Effect . Effect < InstanceContext > {
3027 return store . load ( {
3128 directory : decode ( directory ) ,
3229 init : ( ) => AppRuntime . runPromise ( InstanceBootstrap ) ,
You can’t perform that action at this time.
0 commit comments