Skip to content

Commit

Permalink
Merge pull request #36 from telegram-ru/dev
Browse files Browse the repository at this point in the history
fix(lib/runtime): Fix id creation for elastic
  • Loading branch information
sergeysova authored Dec 4, 2017
2 parents 0fed29a + ff63147 commit 5286736
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function createBot(token, botanioToken, features, telegrafConfig = {}) {
push({
index: `rubot-${process.env.NODE_ENV || 'undefined'}`,
type: 'message',
id: `${ctx.update.message.message_id}-${ctx.update.chat.id}-${ctx.update.from.id}`,
id: `M${ctx.update.message.message_id}C${ctx.update.message.chat.id}F${ctx.update.message.from.id}`,
body: Object.assign({
timestamp: new Date(ctx.update.message.date * 1000).toISOString(),
}, ctx.update.message),
Expand Down

0 comments on commit 5286736

Please sign in to comment.