diff options
author | Ellie Huxtable <ellie@elliehuxtable.com> | 2024-01-06 17:19:31 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-06 17:19:31 +0000 |
commit | 4e56f5a41e5224b816e9eafed145a03cbf52fd93 (patch) | |
tree | 3177cadbced62db723efaf6a7764f37e3c0e318a /atuin-client/src/database.rs | |
parent | 179c6d20ef8f10fd4dcc1be57e05ed4b02e8c123 (diff) |
refactor: String -> HistoryId (#1512)
Diffstat (limited to 'atuin-client/src/database.rs')
-rw-r--r-- | atuin-client/src/database.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/atuin-client/src/database.rs b/atuin-client/src/database.rs index c4b45302b..6a6f59911 100644 --- a/atuin-client/src/database.rs +++ b/atuin-client/src/database.rs @@ -153,7 +153,7 @@ impl Sqlite { "insert or ignore into history(id, timestamp, duration, exit, command, cwd, session, hostname, deleted_at) values(?1, ?2, ?3, ?4, ?5, ?6, ?7, ?8, ?9)", ) - .bind(h.id.as_str()) + .bind(h.id.0.as_str()) .bind(h.timestamp.unix_timestamp_nanos() as i64) .bind(h.duration) .bind(h.exit) @@ -236,7 +236,7 @@ impl Database for Sqlite { set timestamp = ?2, duration = ?3, exit = ?4, command = ?5, cwd = ?6, session = ?7, hostname = ?8, deleted_at = ?9 where id = ?1", ) - .bind(h.id.as_str()) + .bind(h.id.0.as_str()) .bind(h.timestamp.unix_timestamp_nanos() as i64) .bind(h.duration) .bind(h.exit) |