( params: ActionType["insertLocalResult"], )
| 398 | } |
| 399 | |
| 400 | export async function insertLocalResult( |
| 401 | params: ActionType["insertLocalResult"], |
| 402 | ): Promise<void> { |
| 403 | if (!resultsCollection.isReady()) { |
| 404 | //not loaded yet, don't need to insert |
| 405 | return; |
| 406 | } |
| 407 | const transaction = actions.insertLocalResult(params); |
| 408 | await transaction.isPersisted.promise; |
| 409 | } |
| 410 | |
| 411 | export async function deleteLocalTag( |
| 412 | params: ActionType["deleteLocalTag"], |