Zpracování chyb z API
This commit is contained in:
@@ -37,4 +37,7 @@ export const getDayOfWeekIndex = (date: Date) => {
|
||||
export function getIsWeekend(date: Date) {
|
||||
const index = getDayOfWeekIndex(date);
|
||||
return index == 5 || index == 6;
|
||||
}
|
||||
}
|
||||
|
||||
// TODO umístit do samostatného souboru
|
||||
export class InsufficientPermissions extends Error { }
|
||||
Reference in New Issue
Block a user