summaryrefslogtreecommitdiff
path: root/internal/actions/projects.go
diff options
context:
space:
mode:
authorT <t@tjp.lol>2025-08-05 12:36:30 -0600
committerT <t@tjp.lol>2025-08-06 12:13:11 -0600
commit65e2ed65775d64afbc6065a3b4ac1069020093ca (patch)
treef94fabfed5be2d2622429ebc7c8af1bf51085824 /internal/actions/projects.go
parent665bd389a0a1c8adadcaa1122e846cc81f5ead31 (diff)
most features in TUI working, remaining unimplemented keybinds need a modal view
Diffstat (limited to 'internal/actions/projects.go')
-rw-r--r--internal/actions/projects.go6
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
+}