feat(client): added client code for logs API

This commit is contained in:
Jef Roosens 2022-05-07 19:38:28 +02:00
parent 407b226955
commit fa6603bd45
Signed by: Jef Roosens
GPG key ID: B75D4F293C7052DB
8 changed files with 81 additions and 29 deletions

View file

@ -154,9 +154,7 @@ pub fn (db &VieterDb) update_git_repo_archs(repo_id int, archs []GitRepoArch) {
}
pub fn (db &VieterDb) git_repo_exists(repo_id int) bool {
db.get_git_repo(repo_id) or {
return false
}
db.get_git_repo(repo_id) or { return false }
return true
}

View file

@ -8,7 +8,7 @@ pub:
repo_id int [nonull]
start_time time.Time [nonull]
end_time time.Time [nonull]
arch string [nonull]
arch string [nonull]
exit_code int [nonull]
}