MCPcopy
hub / github.com/electerm/electerm / get

Function get

src/app/lib/last-state.js:24–33  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

22}
23
24const get = async (key) => {
25 const res = await dbAction('lastStates', 'findOne', {
26 _id: key
27 })
28 .catch(e => {
29 log.error(e)
30 log.error('last state get error')
31 })
32 return res ? res.value : null
33}
34
35const clear = (key) => {
36 const q = key

Callers 4

TransferModalUIClass · 0.50
sync.jsFile · 0.50
common.jsFile · 0.50

Calls 1

dbActionFunction · 0.70

Tested by

no test coverage detected