Minor fixes (#307)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov 2021-11-16 22:14:37 +06:00 committed by GitHub
parent 4717598936
commit a942f959cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 6 deletions

View File

@ -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",

View File

@ -22,10 +22,10 @@ import {} from '@anticrm/core'
export const ids = mergeIds(contactId, contact, {
channelProvider: {
Email: '' as Ref<ChannelProvider>
// Phone: '' as Ref<ChannelProvider>,
// LinkedIn: '' as Ref<ChannelProvider>,
// Twitter: '' as Ref<ChannelProvider>,
Email: '' as Ref<ChannelProvider>,
Phone: '' as Ref<ChannelProvider>,
LinkedIn: '' as Ref<ChannelProvider>,
Twitter: '' as Ref<ChannelProvider>
// GitHub: '' as Ref<ChannelProvider>,
// Telegram: '' as Ref<ChannelProvider>,
},

View File

@ -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'));