Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit 7f7741a

Browse files
committed
handler: optional deck attrs
1 parent 50bbb01 commit 7f7741a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

infra/handler/src/DeckGo/Handler.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ instance FromJSONObject Deck where
185185
<$> obj .: "slides"
186186
<*> obj .: "name"
187187
<*> obj .: "owner_id"
188-
<*> obj .: "attributes"
188+
<*> obj .:? "attributes" .!= HMS.empty
189189

190190
instance ToJSONObject Deck where
191191
toJSONObject deck = HMS.fromList

0 commit comments

Comments
 (0)