1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-04-27 14:06:13 +00:00
bramw_baserow/web-frontend/modules/database/services/rowHistory.js
2023-08-25 07:25:27 +00:00

47 lines
1 KiB
JavaScript

export default (client) => {
return {
fetchAll({ tableId, rowId }) {
// mocked for now
return {
data: {
count: 2,
next: null,
previous: null,
results: [
{
id: 1,
action_type: 'update_row',
user: {
id: 1,
name: 'John Wick',
},
timestamp: '2023-08-09T00:30:00Z',
before: {
field_1: 'a',
},
after: {
field_1: 'aa',
},
},
{
id: 2,
action_type: 'update_row',
user: {
id: 2,
name: 'Paul Smith',
},
timestamp: '2023-08-09T00:30:00Z',
before: {
field_2: 'a',
},
after: {
field_1: 'aa',
field_2: 'a',
},
},
],
},
}
},
}
}