mirror of
https://github.com/nicksherron/bashhub-server.git
synced 2024-11-10 09:02:54 +08:00
internal/db: import query fix
This commit is contained in:
parent
df7bc934d7
commit
58c935f910
1 changed files with 1 additions and 1 deletions
|
@ -513,7 +513,7 @@ func (sys System) systemGet() System {
|
|||
}
|
||||
|
||||
func importCommands(q Query) {
|
||||
_, err := db.Exec(`INSERT OR IGNORE INTO commands
|
||||
_, err := db.Exec(`INSERT INTO commands
|
||||
("command", "path", "created", "uuid", "exit_status",
|
||||
"system_name", "session_id", "user_id" )
|
||||
VALUES ($1,$2,$3,$4,$5,$6,$7,(select "id" from users where "username" = $8)) ON CONFLICT do nothing`,
|
||||
|
|
Loading…
Reference in a new issue