(page, limit, startDate, endDate, chatTypes, feedbackTypes)
| 217 | } |
| 218 | |
| 219 | const refresh = (page, limit, startDate, endDate, chatTypes, feedbackTypes) => { |
| 220 | getChatmessageApi.request(dialogProps.chatflow.id, { |
| 221 | chatType: chatTypes.length ? chatTypes : undefined, |
| 222 | feedbackType: feedbackTypes.length ? feedbackTypes : undefined, |
| 223 | startDate: startDate, |
| 224 | endDate: endDate, |
| 225 | order: 'DESC', |
| 226 | page: page, |
| 227 | limit: limit |
| 228 | }) |
| 229 | getStatsApi.request(dialogProps.chatflow.id, { |
| 230 | chatType: chatTypes.length ? chatTypes : undefined, |
| 231 | feedbackType: feedbackTypes.length ? feedbackTypes : undefined, |
| 232 | startDate: startDate, |
| 233 | endDate: endDate |
| 234 | }) |
| 235 | setCurrentPage(page) |
| 236 | } |
| 237 | |
| 238 | const onStartDateSelected = (date) => { |
| 239 | const updatedDate = new Date(date) |
no outgoing calls
no test coverage detected