Fix SQL for deleting packages
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
Arsen Musayelyan 2022-12-04 14:52:46 -08:00
parent 715ec7fbe8
commit 14078ec904
1 changed files with 1 additions and 1 deletions

View File

@ -63,5 +63,5 @@ func GetPkgs(db *genji.DB, where string, args ...any) (*genji.Result, error) {
// DeletePkgs deletes all packages matching the where conditions
func DeletePkgs(db *genji.DB, where string, args ...any) error {
return db.Exec("DELETE * FROM pkgs WHERE "+where, args...)
return db.Exec("DELETE FROM pkgs WHERE "+where, args...)
}