fix: the filed of the update dto of user to targets
This commit is contained in:
@@ -19,7 +19,7 @@ export class UpdateUserDto {
|
||||
@IsOptional()
|
||||
@IsArray()
|
||||
@IsString({ each: true })
|
||||
forward?: string[];
|
||||
targets?: string[];
|
||||
|
||||
@ApiPropertyOptional({ description: "URL to upload all messages to", example: "https://example.com/webhook" })
|
||||
@IsOptional()
|
||||
|
||||
@@ -288,7 +288,7 @@ export class UsersService {
|
||||
if (quota) updateData.quota = quota;
|
||||
|
||||
if (forwarders !== undefined) {
|
||||
updateData.forward = forwarders;
|
||||
updateData.targets = forwarders;
|
||||
user.forwarders = forwarders;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user