diff options
Diffstat (limited to 'internal/actions/projects.go')
-rw-r--r-- | internal/actions/projects.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/actions/projects.go b/internal/actions/projects.go index f991728..21f5ef5 100644 --- a/internal/actions/projects.go +++ b/internal/actions/projects.go @@ -10,7 +10,7 @@ import ( ) // CreateProject creates a new project for the specified client -func (a *actionsImpl) CreateProject(ctx context.Context, name, client string, billableRate *float64) (*queries.Project, error) { +func (a *actions) CreateProject(ctx context.Context, name, client string, billableRate *float64) (*queries.Project, error) { // Find the client first clientRecord, err := a.FindClient(ctx, client) if err != nil { @@ -36,7 +36,7 @@ func (a *actionsImpl) CreateProject(ctx context.Context, name, client string, bi } // FindProject finds a project by name or ID -func (a *actionsImpl) FindProject(ctx context.Context, nameOrID string) (*queries.Project, error) { +func (a *actions) FindProject(ctx context.Context, nameOrID string) (*queries.Project, error) { // Parse as ID if possible, otherwise use 0 var idParam int64 if id, err := strconv.ParseInt(nameOrID, 10, 64); err == nil { @@ -61,4 +61,4 @@ func (a *actionsImpl) FindProject(ctx context.Context, nameOrID string) (*querie default: return nil, fmt.Errorf("%w: %s matches multiple projects", ErrAmbiguousProject, nameOrID) } -}
\ No newline at end of file +} |