File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -379,7 +379,7 @@ pub(crate) async fn update(
379379 let labware_result_set = labware_query_result.unwrap();
380380
381381 if labware_result_set.rows_affected() > 0 {
382- // ... use sqlx to fetch the location here...
382+ // ... use sqlx to fetch the labware here...
383383 return Ok(Labware::new(
384384 labware.id,
385385 labware.barcode.clone(),
@@ -390,11 +390,11 @@ pub(crate) async fn update(
390390}
391391```
392392```rs {*}{lines:true}
393- ///! This is NOT our code. This is just to show you something 😉
394393pub(crate) async fn update(
395394 labware: &Labware,
396395 connection: &Pool<Sqlite>,
397396) -> Result<Labware, LabwhereError> {
397+ // This is NOT our code. This is just to show you something 😉
398398 match sqlx::query("UPDATE labwares SET location_id = ? WHERE id = ?")
399399 .bind(labware.location_id)
400400 .bind(labware.id)
You can’t perform that action at this time.
0 commit comments