fix(Mattermost Node): Fix issue when fetching reactions (#9375)

This commit is contained in:
Jon 2024-05-14 15:04:24 +01:00 committed by GitHub
parent 82c8801f25
commit 78e7c7a9da
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -15,6 +15,9 @@ export async function getAll(
const body = {} as IDataObject;
let responseData = await apiRequest.call(this, requestMethod, endpoint, body, qs);
if (responseData === null) {
return [];
}
if (limit > 0) {
responseData = responseData.slice(0, limit);
}