From 20e4d26e9ce8a512e90e32b2e1ee8f30e3e80e53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Uro=C5=A1=20Marolt?= Date: Fri, 18 Aug 2023 09:12:40 +0200 Subject: [PATCH] Fix initial fake organization data. --- .../search_sync_worker/src/repo/organization.data.ts | 2 +- .../search_sync_worker/src/service/init.service.ts | 12 +++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/services/apps/search_sync_worker/src/repo/organization.data.ts b/services/apps/search_sync_worker/src/repo/organization.data.ts index 87f7a768e2..235b08e8e4 100644 --- a/services/apps/search_sync_worker/src/repo/organization.data.ts +++ b/services/apps/search_sync_worker/src/repo/organization.data.ts @@ -3,7 +3,7 @@ export interface IDbOrganizationSyncData { organizationId: string segmentId: string tenantId: string - address: string | null + address: unknown | null attributes: unknown createdAt: string description: string | null diff --git a/services/apps/search_sync_worker/src/service/init.service.ts b/services/apps/search_sync_worker/src/service/init.service.ts index bcb8a8bb62..9e8eddde11 100644 --- a/services/apps/search_sync_worker/src/service/init.service.ts +++ b/services/apps/search_sync_worker/src/service/init.service.ts @@ -33,7 +33,17 @@ export class InitService extends LoggerBase { organizationId: InitService.FAKE_ORGANIZATION_ID, tenantId: InitService.FAKE_TENANT_ID, segmentId: InitService.FAKE_SEGMENT_ID, - address: 'Unknown address 123, 321 Unknown City, Unknown Country', + address: { + name: 'paris, ile-de-france, france', + metro: null, + region: 'ile-de-france', + country: 'france', + locality: 'paris', + continent: 'europe', + postal_code: null, + address_line_2: null, + street_address: null, + }, attributes: {}, createdAt: new Date().toISOString(), description: 'Fake organization',