params are passed as an object

This commit is contained in:
Vladimir Khvan 2023-04-16 20:46:00 +05:00
parent 8be3fa6011
commit a912c5d5dd
2 changed files with 3 additions and 3 deletions

View File

@ -96,8 +96,8 @@ class WebhooksStore {
return await retryWebhooks(ids);
};
getWebhookHistory = async (configId, eventId, logCount, startIndex) => {
return await getWebhooksJournal(configId, eventId, logCount, startIndex);
getWebhookHistory = async (params) => {
return await getWebhooksJournal(params);
};
get isWebhooksEmpty() {

View File

@ -743,7 +743,7 @@ export function removeWebhook(id) {
});
}
export function getWebhooksJournal(configId, eventId, logCount, startIndex) {
export function getWebhooksJournal({configId, eventId, logCount, startIndex}) {
const params = {};
configId && (params.configId = configId);