Skip to content

Commit 89bf2af

Browse files
committed
quick hotfix for youtube videos
1 parent d818ea9 commit 89bf2af

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Sources/OrchardNestServer/Controllers/Routing/HTMLController.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ struct HTMLController {
4545
}
4646
return entries
4747
}
48-
.flatMapEachThrowing {
49-
try EntryItem(entry: $0)
48+
.mapEachCompact {
49+
try? EntryItem(entry: $0)
5050
}
5151
.map { (items) -> HTML in
5252
HTML(
@@ -108,8 +108,8 @@ struct HTMLController {
108108
.filter(Channel.self, \Channel.$id == channel)
109109
.limit(32)
110110
.all()
111-
.flatMapEachThrowing {
112-
try EntryItem(entry: $0)
111+
.mapEachCompact {
112+
try? EntryItem(entry: $0)
113113
}
114114
.map { (items) -> HTML in
115115
HTML(
@@ -141,8 +141,8 @@ struct HTMLController {
141141
.filter(Channel.self, \Channel.$language.$id == "en")
142142
.limit(32)
143143
.all()
144-
.flatMapEachThrowing {
145-
try EntryItem(entry: $0)
144+
.mapEachCompact {
145+
try? EntryItem(entry: $0)
146146
}
147147
.map { (items) -> HTML in
148148
HTML(

orchardnest.sql

Whitespace-only changes.

0 commit comments

Comments
 (0)