diff --git a/dev/prod/package.json b/dev/prod/package.json index 400b3cd368..7e1d95111b 100644 --- a/dev/prod/package.json +++ b/dev/prod/package.json @@ -6,7 +6,7 @@ "build": "cross-env NODE_ENV=production webpack --stats-error-details", "analyze": "cross-env NODE_ENV=production webpack --json > stats.json", "show": "webpack-bundle-analyzer stats.json dist", - "dev": "webpack serve --content-base public", + "dev": "cross-env webpack serve --content-base public", "dev-server": "cross-env CLIENT=server webpack serve --content-base public", "start": "cross-env NODE_ENV=production webpack serve --content-base public", "preformat-svelte": "prettier -w src/**/*.svelte", diff --git a/models/contact/src/plugin.ts b/models/contact/src/plugin.ts index 137490fccd..04d839e574 100644 --- a/models/contact/src/plugin.ts +++ b/models/contact/src/plugin.ts @@ -22,10 +22,10 @@ import {} from '@anticrm/core' export const ids = mergeIds(contactId, contact, { channelProvider: { - Email: '' as Ref - // Phone: '' as Ref, - // LinkedIn: '' as Ref, - // Twitter: '' as Ref, + Email: '' as Ref, + Phone: '' as Ref, + LinkedIn: '' as Ref, + Twitter: '' as Ref // GitHub: '' as Ref, // Telegram: '' as Ref, }, diff --git a/server/front/src/app.ts b/server/front/src/app.ts index e0e33d75b9..9fe7d3da16 100644 --- a/server/front/src/app.ts +++ b/server/front/src/app.ts @@ -242,7 +242,11 @@ export function start (transactorEndpoint: string, elasticUrl: string, minio: Cl await elastic.index(indexedDoc) } - res.status(200).send(id) + res.status(200).send({ + id, + contentType, + size: data.length + }) } }) // console.log(buffer.toString('base64'));