fix: the filed of the update dto of user to targets

This commit is contained in:
mahyargdz
2025-07-16 17:04:12 +03:30
parent 010bb0957d
commit 42f561f00c
2 changed files with 2 additions and 2 deletions
@@ -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()
+1 -1
View File
@@ -288,7 +288,7 @@ export class UsersService {
if (quota) updateData.quota = quota;
if (forwarders !== undefined) {
updateData.forward = forwarders;
updateData.targets = forwarders;
user.forwarders = forwarders;
}