Skip to content

Commit

Permalink
Merge branch 'saigonbitmaster:master' into mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
jackchuong authored Nov 17, 2023
2 parents 2a679ed + 3790eeb commit c0787a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/src/setting/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { Roles } from '../flatworks/roles/roles.decorator';
import { Role } from '../flatworks/types/types';
import { UpdateSettingDto } from './dto/update.dto';
import { CreateSettingDto } from './dto/create.dto';
import { Public } from '../flatworks/roles/public.api.decorator';

/*
Only CMS user to create/update/delete.
Expand All @@ -26,8 +27,8 @@ export class SettingController {
constructor(private readonly service: SettingService) {}

@Get()
@Public()
async getAll(@Response() res: any, @Query() query) {
console.log(query);
const mongooseQuery = queryTransform(query);
const result = await this.service.findAll(mongooseQuery);
return formatRaList(res, result);
Expand Down

0 comments on commit c0787a4

Please sign in to comment.