Skip to content

Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.

516 B
Raw Blame
package reminder

import (
	"context"

	"github.com/simplexai-labs/linger/apps/teamhub/internal/store"
)

// HumanOwner resolves the Human whose Memory tracks items. It reports
// pgx.ErrNoRows for an Actor that is not a Human.
func (s *TrackingService) HumanOwner(ctx context.Context, actorID string) (TrackingOwner, error) {
	tenantID, err := store.New(s.pool).GetHumanActorTenantID(ctx, actorID)
	if err != nil {
		return TrackingOwner{}, err
	}
	return TrackingOwner{TenantID: tenantID, ActorID: actorID}, nil
}