Check input combinations
This commit is contained in:
@@ -49,6 +49,10 @@ export function deleteVersions(input: Input): Observable<boolean> {
|
||||
return throwError('No token found')
|
||||
}
|
||||
|
||||
if (!input.checkInput()) {
|
||||
return throwError('Invalid input combination')
|
||||
}
|
||||
|
||||
if (input.numOldVersionsToDelete <= 0) {
|
||||
console.log(
|
||||
'Number of old versions to delete input is 0 or less, no versions will be deleted'
|
||||
|
||||
Reference in New Issue
Block a user