params are passed as an object
This commit is contained in:
parent
8be3fa6011
commit
a912c5d5dd
@ -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() {
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user