Fix webhook example

This commit is contained in:
Schuyler Cebulskie
2016-11-19 21:23:16 -05:00
parent 213c45323f
commit 34548e3ecc

View File

@@ -4,14 +4,13 @@ const files = [
require('./faq'),
require('./ping_pong'),
require('./avatar'),
require('./webhook'),
];
const categories = {};
for (const file of files) {
file.category = file.category.toLowerCase();
if (!categories[file.category]) {
categories[file.category] = [];
}
if (!categories[file.category]) categories[file.category] = [];
categories[file.category].push(file);
}