diff options
Diffstat (limited to 'internal/actions/clients.go')
-rw-r--r-- | internal/actions/clients.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/actions/clients.go b/internal/actions/clients.go index bc77139..c71ef4a 100644 --- a/internal/actions/clients.go +++ b/internal/actions/clients.go @@ -12,7 +12,7 @@ import ( ) // CreateClient creates a new client with the given name and optional email/rate -func (a *actionsImpl) CreateClient(ctx context.Context, name, email string, billableRate *float64) (*queries.Client, error) { +func (a *actions) CreateClient(ctx context.Context, name, email string, billableRate *float64) (*queries.Client, error) { // Parse name and email if name contains email format "Name <email>" finalName, finalEmail := parseNameAndEmail(name, email) @@ -40,7 +40,7 @@ func (a *actionsImpl) CreateClient(ctx context.Context, name, email string, bill } // FindClient finds a client by name or ID -func (a *actionsImpl) FindClient(ctx context.Context, nameOrID string) (*queries.Client, error) { +func (a *actions) FindClient(ctx context.Context, nameOrID string) (*queries.Client, error) { // Parse as ID if possible, otherwise use 0 var idParam int64 if id, err := strconv.ParseInt(nameOrID, 10, 64); err == nil { @@ -89,4 +89,4 @@ func parseNameAndEmail(nameArg, emailArg string) (string, string) { return finalName, finalEmail } -var emailAndNameRegex = regexp.MustCompile(`^(.+?)<([^>]+@[^>]+)>$`)
\ No newline at end of file +var emailAndNameRegex = regexp.MustCompile(`^(.+?)<([^>]+@[^>]+)>$`) |