Payroll Robot Build Update

This commit is contained in:
Hüseyin
2026-07-22 09:05:29 +03:00
parent 96f18797f8
commit 6d9125234c
5 changed files with 9 additions and 8 deletions

View File

@@ -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)