Merge pull request #63 from 67P/bugfix/mediawiki_accident

Fix mediawiki integration
This commit is contained in:
Basti 2020-10-29 15:13:12 +01:00 committed by GitHub
commit 063a9c6b37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -145,6 +145,7 @@ module.exports = async function(robot, kredits) {
const dateNow = new Date();
const dateYesterday = dateNow.setDate(dateNow.getDate() - 1);
const date = (new Date(dateYesterday)).toISOString().split('T')[0];
const details = analyzeUserChanges(user, changes);
const amount = 500;
let desc = `Added ${details.charsAdded} characters of text.`;