From 1e9a3d4874c1ffe850194bd94259306e15a4434c Mon Sep 17 00:00:00 2001 From: Eric Seidel Date: Thu, 19 Oct 2023 19:27:34 -0700 Subject: [PATCH] chore: use execute instead of query when ignoring result --- packages/cli/lib/net/queue.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cli/lib/net/queue.dart b/packages/cli/lib/net/queue.dart index 1c750ecd..89c3996c 100644 --- a/packages/cli/lib/net/queue.dart +++ b/packages/cli/lib/net/queue.dart @@ -183,7 +183,7 @@ class NetQueue { /// Deletes the given request from the queue. Future 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, @@ -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: {