fix: missing await

v1.18.x
Barış Soner Uşaklı 4 years ago
parent 5a2b14b751
commit 08ff4041aa

@ -40,7 +40,7 @@ module.exports = function (Groups) {
disableLeave: disableLeave,
};
plugins.fireHook('filter:group.create', { group: groupData, data: data });
await plugins.fireHook('filter:group.create', { group: groupData, data: data });
await db.sortedSetAdd('groups:createtime', groupData.createtime, groupData.name);
await db.setObject('group:' + groupData.name, groupData);

Loading…
Cancel
Save