mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 09:28:31 +00:00
Fix: eslint errors
This commit is contained in:
parent
cc01c656db
commit
48fdee8a7c
3 changed files with 14 additions and 4 deletions
|
|
@ -1 +1 @@
|
|||
Subproject commit 2e41c1ce645e86eb130534c12c13f1c40dc20358
|
||||
Subproject commit 543568c7737bc4ab0dafcb168d5f681ae018f4f4
|
||||
|
|
@ -29,7 +29,12 @@ export class DataQueriesController implements IDataQueriesController {
|
|||
@InitFeature(FEATURE_KEY.GET)
|
||||
@UseGuards(JwtAuthGuard, ValidateAppVersionGuard, ValidateQueryAppGuard, AppFeatureAbilityGuard)
|
||||
@Get(':versionId')
|
||||
index(@User() user: UserEntity, @AppDecorator() app: App, @Param('versionId') versionId: string, @Query('mode') mode?: string) {
|
||||
index(
|
||||
@User() user: UserEntity,
|
||||
@AppDecorator() app: App,
|
||||
@Param('versionId') versionId: string,
|
||||
@Query('mode') mode?: string
|
||||
) {
|
||||
return this.dataQueriesService.getAll(user, app, versionId, mode);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -55,7 +55,12 @@ export class GroupPermissionsRepository extends Repository<GroupPermissions> {
|
|||
}, manager || this.manager);
|
||||
}
|
||||
|
||||
async getAllUserGroupsAndRoles(userId: string, appId: string, organizationId: string, manager?: EntityManager): Promise<GroupPermissions[]> {
|
||||
async getAllUserGroupsAndRoles(
|
||||
userId: string,
|
||||
appId: string,
|
||||
organizationId: string,
|
||||
manager?: EntityManager
|
||||
): Promise<GroupPermissions[]> {
|
||||
return dbTransactionWrap(async (manager: EntityManager) => {
|
||||
return manager
|
||||
.createQueryBuilder(GroupPermissions, 'group')
|
||||
|
|
@ -78,7 +83,7 @@ export class GroupPermissionsRepository extends Repository<GroupPermissions> {
|
|||
.select(['group.id AS id'])
|
||||
.groupBy('group.id')
|
||||
.distinct(true)
|
||||
.getRawMany()
|
||||
.getRawMany();
|
||||
}, manager);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue