From c81badd0daa6371dd537fe2bd6de46189ffb0f84 Mon Sep 17 00:00:00 2001 From: Ariel Weinberger Date: Mon, 29 Apr 2024 11:23:54 +0200 Subject: [PATCH] fix: linting --- apps/console/src/styles.css | 15 --------------- apps/server/src/app/identity/projects.resolver.ts | 4 ++-- apps/server/src/app/prompts/prompts.resolver.ts | 8 ++++---- .../src/app/reporting/reporting.controller.ts | 4 ++-- 4 files changed, 8 insertions(+), 23 deletions(-) diff --git a/apps/console/src/styles.css b/apps/console/src/styles.css index bbeb4a5e..0af09d57 100644 --- a/apps/console/src/styles.css +++ b/apps/console/src/styles.css @@ -22,21 +22,6 @@ body, } } -@layer utilities { - @variants responsive { - /* Hide scrollbar for Chrome, Safari and Opera */ - .no-scrollbar::-webkit-scrollbar { - display: none; - } - - /* Hide scrollbar for IE, Edge and Firefox */ - .no-scrollbar { - -ms-overflow-style: none; /* IE and Edge */ - scrollbar-width: none; /* Firefox */ - } - } -} - @layer base { :root { --font-sans: "Inter", sans-serif; diff --git a/apps/server/src/app/identity/projects.resolver.ts b/apps/server/src/app/identity/projects.resolver.ts index 5361d60e..424546c4 100644 --- a/apps/server/src/app/identity/projects.resolver.ts +++ b/apps/server/src/app/identity/projects.resolver.ts @@ -61,7 +61,7 @@ export class ProjectsResolver { } @Query(() => [Project]) - projects( + async projects( @Args("data") data: GetProjectsInput, @CurrentUser() user: RequestUser ) { @@ -70,7 +70,7 @@ export class ProjectsResolver { this.logger.assign({ organizationId }).info("Getting projects"); try { - return this.projectsService.getProjectsByOrgId(organizationId); + return await this.projectsService.getProjectsByOrgId(organizationId); } catch (error) { this.logger.error({ error }, "Error getting projects"); throw new InternalServerErrorException(); diff --git a/apps/server/src/app/prompts/prompts.resolver.ts b/apps/server/src/app/prompts/prompts.resolver.ts index d7685193..a72f9322 100644 --- a/apps/server/src/app/prompts/prompts.resolver.ts +++ b/apps/server/src/app/prompts/prompts.resolver.ts @@ -266,11 +266,11 @@ export class PromptsResolver { } @ResolveField(() => [PromptVersion]) - versions(@Parent() prompt: PrismaPrompt) { + async versions(@Parent() prompt: PrismaPrompt) { this.logger.info("Resolving prompt versions"); try { - return this.promptsService.getPromptVersions(prompt.id); + return await this.promptsService.getPromptVersions(prompt.id); } catch (error) { this.logger.error({ error }, "Error getting prompt versions"); throw new InternalServerErrorException(); @@ -278,11 +278,11 @@ export class PromptsResolver { } @ResolveField(() => PromptVersion, { nullable: true }) - latestVersion(@Parent() prompt: PrismaPrompt) { + async latestVersion(@Parent() prompt: PrismaPrompt) { this.logger.info("Resolving prompt latest version"); try { - return this.promptsService.getLatestPromptVersion(prompt.id); + return await this.promptsService.getLatestPromptVersion(prompt.id); } catch (error) { this.logger.error({ error }, "Error getting prompt latest version"); throw new InternalServerErrorException(); diff --git a/apps/server/src/app/reporting/reporting.controller.ts b/apps/server/src/app/reporting/reporting.controller.ts index b11a3efb..93484895 100644 --- a/apps/server/src/app/reporting/reporting.controller.ts +++ b/apps/server/src/app/reporting/reporting.controller.ts @@ -31,7 +31,7 @@ export class ReportingController { description: "Report has been reported successfully", }) @ApiResponse({ status: 500, description: "Internal server error" }) - reportRequest( + async reportRequest( @Body() dto: CreateReportDto, @ApiKeyOrgId() organizationId: string, @ProjectId() projectId: string @@ -44,7 +44,7 @@ export class ReportingController { .info("Saving report"); try { - return this.reportingService.saveReport(dto, { + return await this.reportingService.saveReport(dto, { organizationId, projectId, });