Skip to content

Commit 2a7148d

Browse files
committed
allow only createGames too
1 parent cde8107 commit 2a7148d

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎lua/wikis/commons/MatchSummary/Base.lua‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,12 @@ end
235235
---@return VNode
236236
function MatchSummary.defaultGetByMatchId(CustomMatchSummary, args, options)
237237
assert(
238-
(type(CustomMatchSummary.createBody) == 'function' or type(CustomMatchSummary.createGame) == 'function'),
239-
'createBody(match) or createGame(date, game, gameIndex) must be implemented in Module:MatchSummary'
238+
(
239+
type(CustomMatchSummary.createBody) == 'function' or
240+
type(CustomMatchSummary.createGame) == 'function' or
241+
type(CustomMatchSummary.createGames) == 'function'
242+
),
243+
'createBody or createGame or createGames must be implemented in Module:MatchSummary'
240244
)
241245

242246
options = options or {}

0 commit comments

Comments
 (0)