1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-01-31 03:12:45 +00:00
bramw_baserow/enterprise/web-frontend/modules/baserow_enterprise/services/dataSync.js
2025-01-20 12:28:14 +00:00

13 lines
342 B
JavaScript

export default (client) => {
return {
getPeriodicInterval(dataSyncId) {
return client.get(`/data-sync/${dataSyncId}/periodic-interval/`)
},
updatePeriodicInterval(dataSyncId, interval, when) {
return client.patch(`/data-sync/${dataSyncId}/periodic-interval/`, {
interval,
when,
})
},
}
}