mirror of
https://github.com/BioArchLinux/bioarchlinux-packages.git
synced 2025-03-10 06:24:00 +00:00
fix: ensure logdir is not null
This commit is contained in:
parent
4121463c34
commit
6c96967407
2 changed files with 5 additions and 1 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue