MCPcopy Create free account
hub / github.com/clientdb/clientdb / updateItemIndex

Function updateItemIndex

core/queryIndex.ts:133–137  ·  view source on GitHub ↗
(entity: TargetEntity)

Source from the content-addressed store, hash-verified

131 }
132
133 function updateItemIndex(entity: TargetEntity) {
134 const indexValue = getCurrentIndexValue(entity);
135
136 updateItemIndexWithValue(entity, indexValue);
137 }
138
139 function removeItemFromIndex(entity: TargetEntity) {
140 const currentIndexList = currentItemIndexMap.get(entity);

Callers 2

handleUpdateRequestFunction · 0.85

Calls 2

getCurrentIndexValueFunction · 0.85
updateItemIndexWithValueFunction · 0.85

Tested by

no test coverage detected