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