Zpracování chyb z API
This commit is contained in:
1 parent
8a67325c85
commit
bc181defa8
5 files changed
+96
-45
No files matched your search
+4
-1
@@ -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