pinafore/routes/_database/timelines/fetchAccount.js

6 lines
140 B
JavaScript

export function fetchAccount (accountsStore, id, callback) {
accountsStore.get(id).onsuccess = e => {
callback(e.target.result)
}
}