Closed ahmedraad closed 5 years ago
Try adding explicit return types to the closures to aid the compiler in generating a better error message:
{ () -> Foo in
return someFoo
}
it works now by adding return type -> EventLoopFuture<Journey.Public>
to data.compactMap
@tanner0101 thanks!
I've this method here, it shows an error
Cannot convert value of type '(_) throws -> EventLoopFuture<Void>' to expected argument type '([(Journey, User)]) throws -> EventLoopFuture<_>'
So the guys on discord gave me a bunch of solutions, but non of them work. btw
Journey.Public
,DisplayUser
structs are confirmed to ContentVapor Toolbox: 3.1.10
Vapor 3.1.0
FluentPostgreSQL 1.0.0