Some decisions regarding the lua env
it will be in the app environment because it serves the app, will think about it later
This commit is contained in:
@@ -4,8 +4,8 @@ import (
|
||||
mod "expenses/expenses/models"
|
||||
)
|
||||
|
||||
func (s *Service) GetAllUsers() ([]mod.User, error) {
|
||||
tx, err := s.DB.Begin()
|
||||
func (a *ExpensesApp) GetAllUsers() ([]mod.User, error) {
|
||||
tx, err := a.DB.Begin()
|
||||
if err != nil {
|
||||
return []mod.User{}, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user