MCPcopy
hub / github.com/electerm/electerm / getData

Function getData

src/client/common/db.js:148–153  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

146 * @return any
147 */
148export async function getData (name) {
149 const res = await dbAction('data', 'findOne', {
150 _id: name
151 })
152 return res ? res.value : undefined
153}
154
155/**
156 * get sorted data from db

Callers 3

sync.jsFile · 0.90
load-data.jsFile · 0.90
fetchInitDataFunction · 0.85

Calls 1

dbActionFunction · 0.70

Tested by

no test coverage detected