fix: #7842, groups.invite works with an array of uids

This commit is contained in:
Barış Soner Uşaklı
2019-08-18 21:51:32 -04:00
parent fa26855671
commit 1e0190abef
5 changed files with 39 additions and 33 deletions

View File

@@ -9,7 +9,9 @@ module.exports = function (module) {
if (!Array.isArray(value)) {
value = [value];
}
if (!value.length) {
return;
}
await module.transaction(async function (client) {
await helpers.ensureLegacyObjectType(client, key, 'set');
await client.query({