pinafore/routes/_database/timelines/fetchAccount.js

6 lines
140 B
JavaScript
Raw Normal View History

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