fix and update
This commit is contained in:
@@ -136,7 +136,9 @@ export class AdminController {
|
||||
userId,
|
||||
search: query.search,
|
||||
limit: query.limit,
|
||||
offset: query.offset
|
||||
offset: query.offset,
|
||||
dateFrom: query.dateFrom,
|
||||
dateTo: query.dateTo
|
||||
})
|
||||
);
|
||||
}
|
||||
@@ -152,7 +154,9 @@ export class AdminController {
|
||||
userId,
|
||||
search: query.search,
|
||||
limit: query.limit,
|
||||
offset: query.offset
|
||||
offset: query.offset,
|
||||
dateFrom: query.dateFrom,
|
||||
dateTo: query.dateTo
|
||||
})
|
||||
);
|
||||
}
|
||||
@@ -168,7 +172,9 @@ export class AdminController {
|
||||
userId,
|
||||
search: query.search,
|
||||
limit: query.limit,
|
||||
offset: query.offset
|
||||
offset: query.offset,
|
||||
dateFrom: query.dateFrom,
|
||||
dateTo: query.dateTo
|
||||
})
|
||||
);
|
||||
}
|
||||
@@ -187,7 +193,9 @@ export class AdminController {
|
||||
userId,
|
||||
search: query.search.trim(),
|
||||
limit: query.limit,
|
||||
offset: query.offset
|
||||
offset: query.offset,
|
||||
dateFrom: query.dateFrom,
|
||||
dateTo: query.dateTo
|
||||
})
|
||||
);
|
||||
}
|
||||
@@ -209,7 +217,9 @@ export class AdminController {
|
||||
roomId,
|
||||
search: query.search,
|
||||
limit: query.limit,
|
||||
beforeMessageId: query.beforeMessageId
|
||||
beforeMessageId: query.beforeMessageId,
|
||||
dateFrom: query.dateFrom,
|
||||
dateTo: query.dateTo
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
@@ -88,4 +88,14 @@ export class UserInsightsQueryDto {
|
||||
@IsOptional()
|
||||
@IsString({ message: 'beforeMessageId должно быть строкой' })
|
||||
beforeMessageId?: string;
|
||||
|
||||
@ApiPropertyOptional({ description: 'Начало периода (ISO 8601 или datetime-local)' })
|
||||
@IsOptional()
|
||||
@IsString({ message: 'dateFrom должно быть строкой' })
|
||||
dateFrom?: string;
|
||||
|
||||
@ApiPropertyOptional({ description: 'Конец периода (ISO 8601 или datetime-local)' })
|
||||
@IsOptional()
|
||||
@IsString({ message: 'dateTo должно быть строкой' })
|
||||
dateTo?: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user