Skip to content

Commit 2779f04

Browse files
authored
Demo environment (#2384)
* feat(*): checkpoint * revert(workflows-service): reverted error log change * fix(backoffice-v2): associated companies fixes
1 parent 0714d9b commit 2779f04

File tree

9 files changed

+23
-8
lines changed

9 files changed

+23
-8
lines changed

apps/backoffice-v2/src/domains/workflows/hooks/mutations/useUpdateDocumentByIdMutation/useUpdateDocumentByIdMutation.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ export const useUpdateDocumentByIdMutation = ({
4141
const previousWorkflow = queryClient.getQueryData(workflowById.queryKey);
4242

4343
queryClient.setQueryData(workflowById.queryKey, (oldWorkflow: TWorkflowById) => {
44+
if (!oldWorkflow) {
45+
return;
46+
}
47+
4448
return {
4549
...oldWorkflow,
4650
context: {
@@ -49,6 +53,7 @@ export const useUpdateDocumentByIdMutation = ({
4953
if (doc.id === documentId) {
5054
return document;
5155
}
56+
5257
return doc;
5358
}),
5459
},

apps/backoffice-v2/src/lib/blocks/variants/DefaultBlocks/hooks/useCaseBlocksLogic/utils/get-tabs-block-map.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ export const getTabsToBlocksMap = (
6868
associated_companies: [
6969
...associatedCompaniesBlock,
7070
...associatedCompaniesInformationBlock,
71-
...createKycBlocks(workflow as TWorkflowById),
7271
...createAssociatedCompanyDocumentBlocks(workflow, blocksCreationParams),
7372
],
7473
directors: [

apps/backoffice-v2/src/pages/TransactionMonitoringAlerts/components/NoAlerts/NoAlerts.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { FunctionComponent } from 'react';
33

44
export const NoAlerts: FunctionComponent = () => {
55
return (
6-
<div className="flex items-center justify-center p-4 pb-72">
6+
<div className="flex items-center justify-center p-4 pb-64">
77
<div className="inline-flex flex-col items-start gap-4 rounded-md border-[1px] border-[#CBD5E1] p-6">
88
<div className="flex w-[464px] items-center justify-center">
99
<NoCasesSvg width={96} height={81} />

pnpm-lock.yaml

Lines changed: 8 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

services/workflows-service/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@
116116
"@types/deep-diff": "^1.0.5",
117117
"@types/express": "4.17.9",
118118
"@types/jest": "^26.0.19",
119+
"@types/jmespath": "^0.15.0",
119120
"@types/js-base64": "^3.3.1",
120121
"@types/json-stable-stringify": "^1.0.36",
121122
"@types/lodash": "^4.14.191",
@@ -140,6 +141,7 @@
140141
"eslint-plugin-import": "^2.27.5",
141142
"jest": "29.7.0",
142143
"jest-mock-extended": "^2.0.4",
144+
"jmespath": "^0.16.0",
143145
"plop": "^4.0.0",
144146
"prettier": "^2.8.4",
145147
"prisma": "4.16.2",

services/workflows-service/src/common/utils/winston-logger/winston-logger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { IAppLogger, LogPayload } from '@/common/abstract-logger/abstract-logger';
22
import { env } from '@/env';
3-
import { createLogger, format, transports, Logger as TWinstonLogger } from 'winston';
3+
import { createLogger, format, Logger as TWinstonLogger, transports } from 'winston';
44

55
export class WinstonLogger implements IAppLogger {
66
private logger: TWinstonLogger;

services/workflows-service/src/types.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,7 @@ export type GenericFunction = (...args: AnyArray) => any;
4040
export type GenericAsyncFunction = (...args: AnyArray) => Promise<any>;
4141

4242
export type PrismaTransaction = Omit<PrismaClient, runtime.ITXClientDenyList>;
43+
44+
export type PrismaTransactionMethod = Parameters<PrismaClient['$transaction']>[0];
45+
46+
export type PrismaTransactionClient = Parameters<PrismaTransactionMethod>[0];

services/workflows-service/src/workflow/hook-callback-handler.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ export class HookCallbackHandlerService {
287287
const customer = await this.customerService.getByProjectId(currentProjectId);
288288
const persistedDocuments = await this.workflowService.copyDocumentsPagesFilesAndCreate(
289289
documents as TDocumentsWithoutPageType,
290-
// @ts-expect-error - we don't validate `context` is an object1
290+
// @ts-expect-error - we don't validate `context` is an object
291291
context.entity.id || context.entity.ballerineEntityId,
292292
currentProjectId,
293293
customer.name,

0 commit comments

Comments
 (0)