feat: tap measurement in history to edit or delete
This commit is contained in:
parent
1f43918e84
commit
4130bdd697
1 changed files with 104 additions and 22 deletions
|
|
@ -77,3 +77,7 @@ export async function getUnsyncedMeasurements(): Promise<Measurement[]> {
|
|||
)
|
||||
return rows as Measurement[]
|
||||
}
|
||||
|
||||
export async function deleteMeasurement(id: string): Promise<void> {
|
||||
await db!.runAsync('DELETE FROM measurements WHERE id = ?', [id])
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue