Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
martmull committed Aug 22, 2024
1 parent 8c5446e commit e765286
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ export const computePgGraphQLError = (
const error = errors[0];
const errorMessage = error?.message;

const mappedErrorKey = Object.keys(pgGraphQLErrorMapping).find((key) =>
errorMessage?.includes(key),
const mappedErrorKey = Object.keys(pgGraphQLErrorMapping).find(
(key) => errorMessage?.includes(key),
);

const mappedError = mappedErrorKey
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,9 +246,9 @@ export class TimelineMessagingService {
// If the workspace member is not in the participants of the thread, use the visibility value from the query
threadVisibilityAcc[messageThreadId] =
threadIdsWithoutWorkspaceMember.includes(messageThreadId)
? (threadVisibilityByThreadIdForWhichWorkspaceMemberIsNotInParticipants?.[
? threadVisibilityByThreadIdForWhichWorkspaceMemberIsNotInParticipants?.[
messageThreadId
] ?? MessageChannelVisibility.METADATA)
] ?? MessageChannelVisibility.METADATA
: MessageChannelVisibility.SHARE_EVERYTHING;

return threadVisibilityAcc;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class BaseServerlessDriver {
async getCompiledCode(
serverlessFunction: ServerlessFunctionEntity,
fileStorageService: FileStorageService,
version='draft',
version = 'draft',
) {
const folderPath = this.getFolderPath(serverlessFunction, version);
const fileStream = await fileStorageService.read({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { Field, ID, InputType } from '@nestjs/graphql';

import { IDField } from '@ptc-org/nestjs-query-graphql';


@InputType()
export class GetServerlessFunctionSourceCodeInput {
@IDField(() => ID, { description: 'The id of the function.' })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ import {
import {
IsDateString,
IsEnum,
IsNotEmpty, IsNumber, IsOptional,
IsNotEmpty,
IsNumber,
IsString,
IsUUID
IsUUID,
} from 'class-validator';

import { UUIDScalarType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/scalars';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,12 @@ export class CodeWorkflowActionExecutor implements WorkflowActionExecutor {
);
}

const result = await this.serverlessFunctionService.executeOneServerlessFunction(
action.settings.serverlessFunctionId,
workspaceId,
payload,
);
const result =
await this.serverlessFunctionService.executeOneServerlessFunction(
action.settings.serverlessFunctionId,
workspaceId,
payload,
);

return { data: result.data, ...(result.error && { error: result.error }) };
}
Expand Down

0 comments on commit e765286

Please sign in to comment.