fix: throw if error

This commit is contained in:
Ivan Shmidt
2020-05-19 11:03:01 +02:00
parent 6084eeeb43
commit b9bd2fd523
@@ -81,7 +81,7 @@ export class Database {
return (
await tx<DatabaseLocation>('locations').where({ id }).select()
)?.[0];
)![0];
});
}