File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Sources/OrchardNestServer/Controllers/Routing Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -45,8 +45,8 @@ struct HTMLController {
45
45
}
46
46
return entries
47
47
}
48
- . flatMapEachThrowing {
49
- try EntryItem ( entry: $0)
48
+ . mapEachCompact {
49
+ try ? EntryItem ( entry: $0)
50
50
}
51
51
. map { ( items) -> HTML in
52
52
HTML (
@@ -108,8 +108,8 @@ struct HTMLController {
108
108
. filter ( Channel . self, \Channel . $id == channel)
109
109
. limit ( 32 )
110
110
. all ( )
111
- . flatMapEachThrowing {
112
- try EntryItem ( entry: $0)
111
+ . mapEachCompact {
112
+ try ? EntryItem ( entry: $0)
113
113
}
114
114
. map { ( items) -> HTML in
115
115
HTML (
@@ -141,8 +141,8 @@ struct HTMLController {
141
141
. filter ( Channel . self, \Channel . $language. $id == " en " )
142
142
. limit ( 32 )
143
143
. all ( )
144
- . flatMapEachThrowing {
145
- try EntryItem ( entry: $0)
144
+ . mapEachCompact {
145
+ try ? EntryItem ( entry: $0)
146
146
}
147
147
. map { ( items) -> HTML in
148
148
HTML (
You can’t perform that action at this time.
0 commit comments