fix: ensure logdir is not null

This commit is contained in:
imlonghao 2022-01-27 22:06:08 +08:00
parent 4121463c34
commit 6c96967407
Failed to extract signature
2 changed files with 5 additions and 1 deletions

View file

@ -9,6 +9,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [0.2.4] - 2022-01-27
### Fixed
- Ensure logir is not null
### Added
- Format datetime in locale format [github#1](https://github.com/imlonghao/archlinuxcn-packages/pull/1)

View file

@ -233,7 +233,7 @@ async fn get_pkg_log(
let conn = db.get().await.unwrap();
let rows = conn
.query(
"select logdir from lilac.batch where ts < $1 and event = 'start' order by id desc limit 1",
"select logdir from lilac.batch where ts < $1 and event = 'start' and logdir is not null order by id desc limit 1",
&[&dt],
)
.await