Payroll Robot Build Update
This commit is contained in:
@@ -17,7 +17,8 @@ type Srv struct {
|
||||
}
|
||||
|
||||
func (s *Srv) Companies() ([]company.Company, error) {
|
||||
var res []company.Company
|
||||
slog.Info("Companies method called from JS")
|
||||
res := make([]company.Company, 0)
|
||||
err := run.DB.Select(&res, "SELECT * FROM company order by 1")
|
||||
if err != nil {
|
||||
slog.Error("Companies SELECT error", "error", err)
|
||||
|
||||
Reference in New Issue
Block a user