mirror of
https://codeberg.org/timelimit/timelimit-server.git
synced 2026-08-31 19:03:45 +02:00
Get update app activities working
This commit is contained in:
@@ -26,3 +26,9 @@ export function assertNonEmptyListWithoutDuplicates (list: Array<string>) {
|
||||
throw new Error('expected list without duplicates')
|
||||
}
|
||||
}
|
||||
|
||||
export function assertListWithoutDuplicates (list: Array<string>) {
|
||||
if (uniq(list).length !== list.length) {
|
||||
throw new Error('expected list without duplicates')
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user