Fixed extra parameter to function

- `serializeTier` only takes 2 parameters
- flagged by tsserver
This commit is contained in:
Daniel Lockyer 2024-05-06 21:18:23 +02:00 committed by Daniel Lockyer
parent f72d7b77ac
commit efc59dd315

View File

@ -20,7 +20,7 @@ module.exports = {
function paginatedTiers(page, _apiConfig, frame) {
return {
tiers: page.data.map((model) => {
return serializeTier(model, frame.options, frame);
return serializeTier(model, frame.options);
}),
meta: page.meta
};
@ -36,7 +36,7 @@ function paginatedTiers(page, _apiConfig, frame) {
function singleTier(model, _apiConfig, frame) {
return {
tiers: [
serializeTier(model, frame.options, frame)
serializeTier(model, frame.options)
]
};
}