Compare commits
No commits in common. "67a02f06dadd3ca07e24ce79631377bd24ff2996" and "2ac9d3e977b8903351e5e3185f3454b4bf7763df" have entirely different histories.
67a02f06da
...
2ac9d3e977
@ -1,4 +1,4 @@
|
||||
import { IsInt, IsNotEmpty, IsPositive } from 'class-validator';
|
||||
import { IsInt, IsNotEmpty, IsObject } from 'class-validator';
|
||||
import { getConnectionManager } from 'typeorm';
|
||||
import { PermissionNeedsPrincipalError } from '../../../errors/PermissionErrors';
|
||||
import { PrincipalNotFoundError } from '../../../errors/PrincipalErrors';
|
||||
@ -22,8 +22,8 @@ export class UpdatePermission {
|
||||
/**
|
||||
* The updated permissions's principal's id.
|
||||
*/
|
||||
@IsInt()
|
||||
@IsPositive()
|
||||
@IsObject()
|
||||
@IsNotEmpty()
|
||||
principal: number;
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user