fixing some minor error

This commit is contained in:
Sagi Dayan 2017-10-21 22:04:53 +03:00
parent c208f83820
commit 8df0ec9eee

View file

@ -35,10 +35,10 @@ let storeFileCallback = (err, filePath, chatId, photoId) => {
if (admin_chatId !== chatId) notifyAdmin(response, photoId); if (admin_chatId !== chatId) notifyAdmin(response, photoId);
} else { } else {
response = config.messages.sendieResponse.fileSuccessfullySaved; response = config.messages.sendieResponse.fileSuccessfullySaved;
response = message.replace('{fileLocation}', filePath); response = response.replace('{fileLocation}', filePath);
telegram.sendMessage(chatId, response); telegram.sendMessage(chatId, response);
response = config.messages.adminNotifications.fileSuccessfullySaved; response = config.messages.adminNotifications.fileSuccessfullySaved;
response = message.replace('{fileLocation}', filePath); response = response.replace('{fileLocation}', filePath);
if (admin_chatId !== chatId) notifyAdmin(response, photoId); if (admin_chatId !== chatId) notifyAdmin(response, photoId);
} }
}; };