Skip to content

Commit

Permalink
fix: datasets page 400 error on changing items per page
Browse files Browse the repository at this point in the history
  • Loading branch information
Junjiequan committed Apr 4, 2024
1 parent d47a6cb commit 3eb8295
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/users/users.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,7 @@ import { Request } from "express";
import { JWTUser } from "../auth/interfaces/jwt-user.interface";
import { UserSettings } from "./schemas/user-settings.schema";
import { CreateUserSettingsDto } from "./dto/create-user-settings.dto";
import {
PartialUpdateUserSettingsDto,
UpdateUserSettingsDto,
} from "./dto/update-user-settings.dto";
import { PartialUpdateUserSettingsDto } from "./dto/update-user-settings.dto";
import { User } from "./schemas/user.schema";
import { CreateUserSettingsInterceptor } from "./interceptors/create-user-settings.interceptor";
import { AuthService } from "src/auth/auth.service";
Expand Down Expand Up @@ -255,7 +252,7 @@ export class UsersController {
async updateSettings(
@Req() request: Request,
@Param("id") id: string,
@Body() updateUserSettingsDto: UpdateUserSettingsDto,
@Body() updateUserSettingsDto: PartialUpdateUserSettingsDto,
): Promise<UserSettings | null> {
await this.checkUserAuthorization(
request,
Expand Down

0 comments on commit 3eb8295

Please sign in to comment.