mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-20 02:05:21 -04:00
refactor: replace TypeORM with knex.js
Co-authored-by: Philip Molares <philip.molares@udo.edu> Signed-off-by: Philip Molares <philip.molares@udo.edu> Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
parent
6e151c8a1b
commit
c0ce00b3f9
242 changed files with 4601 additions and 6871 deletions
|
@ -10,7 +10,7 @@ import { ApiTags } from '@nestjs/swagger';
|
|||
import { SessionGuard } from '../../../auth/session.guard';
|
||||
import { GroupsService } from '../../../groups/groups.service';
|
||||
import { ConsoleLoggerService } from '../../../logger/console-logger.service';
|
||||
import { OpenApi } from '../../utils/openapi.decorator';
|
||||
import { OpenApi } from '../../utils/decorators/openapi.decorator';
|
||||
|
||||
@UseGuards(SessionGuard)
|
||||
@OpenApi(401, 403)
|
||||
|
@ -27,8 +27,6 @@ export class GroupsController {
|
|||
@Get(':groupName')
|
||||
@OpenApi(200)
|
||||
async getGroup(@Param('groupName') groupName: string): Promise<GroupInfoDto> {
|
||||
return this.groupService.toGroupDto(
|
||||
await this.groupService.getGroupByName(groupName),
|
||||
);
|
||||
return await this.groupService.getGroupInfoDtoByName(groupName);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue