mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-14 12:14:33 +01:00
Add default range
This commit is contained in:
@@ -18,7 +18,7 @@ export default class SongsController {
|
||||
const { range } = await request.validate(SongHistoryValidator)
|
||||
const history = await getHistory(range || 'day')
|
||||
return response.status(200).send({
|
||||
range,
|
||||
range: range || 'day',
|
||||
history,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user