fix(recently): multi-choice before and after

This commit is contained in:
Innei
2021-11-24 21:34:24 +08:00
parent e423f92558
commit be4ebd30c4

View File

@@ -36,7 +36,7 @@ export class RecentlyController {
async getList(@Query() query: OffsetDto) {
const { before, after, size } = query
if (before && after) {
if (!before && !after) {
throw new BadRequestException('before or after must choice one')
}