mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 22:15:48 +01:00
fix: rename language key for incorrect parameter type error
This commit is contained in:
@@ -29,7 +29,7 @@ chatsAPI.create = async function (caller, data) {
|
||||
}
|
||||
|
||||
if (!data.uids || !Array.isArray(data.uids)) {
|
||||
throw new Error(`[[error:array-expected, uids, ${typeof data.uids}]]`);
|
||||
throw new Error(`[[error:wrong-parameter-type, uids, ${typeof data.uids}, Array]]`);
|
||||
}
|
||||
|
||||
await Promise.all(data.uids.map(async uid => messaging.canMessageUser(caller.uid, uid)));
|
||||
|
||||
Reference in New Issue
Block a user