send dm on failure to parse
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
mightypanders
2022-05-05 21:39:53 +02:00
parent 9ae406dfb3
commit f8afee69bd
3 changed files with 21 additions and 13 deletions

View File

@ -66,6 +66,9 @@ export class Schedule {
throw new CustomError('Schedule type not supported', errorCodes.schedule_not_supported)
}
}
public getSanitizedScheduleString(): string {
return this._scheduleString
}
private getBaseScheduleNameFromVariableString(): string {
if (this._scheduleString.includes('week')) return 'weekly'
if (this._scheduleString.includes('day')) return 'daily'