Delete: Song history

This commit is contained in:
2022-04-14 23:25:29 +02:00
parent 55b197f64d
commit cbad29dfd9
10 changed files with 60 additions and 193 deletions

View File

@@ -1,12 +1,12 @@
import { schema } from '@ioc:Adonis/Core/Validator'
import { HttpContextContract } from '@ioc:Adonis/Core/HttpContext'
export default class SongHistoryValidator {
export default class SongRangeValidator {
constructor(protected ctx: HttpContextContract) {
}
public schema = schema.create({
range: schema.enum.optional(['day', 'week', 'month', 'total'] as const),
range: schema.enum.optional(['short', 'medium', 'long'] as const),
})
public messages = {