Skip to content

Commit

Permalink
fix: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
arielweinberger committed Apr 29, 2024
1 parent dc56c85 commit c81badd
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 23 deletions.
15 changes: 0 additions & 15 deletions apps/console/src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions apps/server/src/app/identity/projects.resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export class ProjectsResolver {
}

@Query(() => [Project])
projects(
async projects(
@Args("data") data: GetProjectsInput,
@CurrentUser() user: RequestUser
) {
Expand All @@ -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();
Expand Down
8 changes: 4 additions & 4 deletions apps/server/src/app/prompts/prompts.resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,23 +266,23 @@ 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();
}
}

@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();
Expand Down
4 changes: 2 additions & 2 deletions apps/server/src/app/reporting/reporting.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -44,7 +44,7 @@ export class ReportingController {
.info("Saving report");

try {
return this.reportingService.saveReport(dto, {
return await this.reportingService.saveReport(dto, {
organizationId,
projectId,
});
Expand Down

0 comments on commit c81badd

Please sign in to comment.