Skip to content

Commit

Permalink
chore: use execute instead of query when ignoring result
Browse files Browse the repository at this point in the history
  • Loading branch information
eseidel committed Oct 20, 2023
1 parent e15338c commit 1e9a3d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/cli/lib/net/queue.dart
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ class NetQueue {
/// Deletes the given request from the queue.
Future<void> deleteRequest(RequestRecord request) async {
// TODO(eseidel): Move this into db package.
await _db.connection.query(
await _db.connection.execute(
'DELETE FROM request_ WHERE id = @id',
substitutionValues: {
'id': request.id,
Expand All @@ -198,7 +198,7 @@ class NetQueue {
) async {
assert(role == QueueRole.responder, 'Only responders can respond.');
// TODO(eseidel): Move this into db package.
await _db.connection.query(
await _db.connection.execute(
'INSERT INTO response_ (request_id, json) '
'VALUES (@requestId, @json)',
substitutionValues: {
Expand Down

0 comments on commit 1e9a3d4

Please sign in to comment.