Skip to content

Commit d2a240a

Browse files
committed
Add queriedAt timestamp to pagination
1 parent f35a122 commit d2a240a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/service-module/mutations.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,8 @@ export default function makeServiceMutations (servicePath, { debug, globalModels
257257
const ids = data.map(item => {
258258
return item[idField]
259259
})
260-
Vue.set(state.pagination, qid, { limit, skip, total, ids, query })
260+
const queriedAt = new Date().getTime()
261+
Vue.set(state.pagination, qid, { limit, skip, total, ids, query, queriedAt })
261262
},
262263

263264
setFindPending (state) {

0 commit comments

Comments
 (0)