Skip to content

Commit 4c1b0c9

Browse files
author
Josh
committed
fix
1 parent 4a13165 commit 4c1b0c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/repositories/hardware_logs.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,11 @@ pub async fn is_shared_device<C: Context>(
137137
" WHERE mac = ? AND unique_id = ? AND disk_id = ?",
138138
") AS is_shared"
139139
);
140-
let result: bool = sqlx::query_scalar(QUERY)
140+
let is_shared: bool = sqlx::query_scalar(QUERY)
141141
.bind(mac)
142142
.bind(unique_id)
143143
.bind(disk_id)
144144
.fetch_one(ctx.db())
145145
.await?;
146-
Ok(result.0)
146+
Ok(is_shared)
147147
}

0 commit comments

Comments
 (0)