Can now run ChromeDP to automate the browser based testing.

This commit is contained in:
Zed A. Shaw 2025-06-15 01:21:42 -04:00
parent 81aaffec56
commit b28e507e5e
6 changed files with 72 additions and 7 deletions

View file

@ -58,11 +58,12 @@ func ReceivePost[T any](c *fiber.Ctx) (*T, error) {
return result, nil
}
func Insert(db *sqlx.DB, err error, sql string, args ...interface{}) error {
func Insert(db *sqlx.DB, err error, sql_query string, args ...interface{}) error {
if err != nil {
log.Println(err)
return err
}
return db.MustExec(sql, args...)
_, exec_err := db.NamedExec(sql_query, args)
return exec_err
}