MCPcopy Create free account
hub / github.com/PaperDebugger/paperdebugger / GetUserInstructions

Method GetUserInstructions

internal/services/user.go:136–142  ·  view source on GitHub ↗
(ctx context.Context, userID bson.ObjectID)

Source from the content-addressed store, hash-verified

134}
135
136func (s *UserService) GetUserInstructions(ctx context.Context, userID bson.ObjectID) (string, error) {
137 user, err := s.GetUserByID(ctx, userID)
138 if err != nil {
139 return "", err
140 }
141 return user.Instructions, nil
142}
143
144func (s *UserService) UpsertUserInstructions(ctx context.Context, userID bson.ObjectID, instructions string) (string, error) {
145 filter := bson.M{"_id": userID}

Callers

nothing calls this directly

Calls 1

GetUserByIDMethod · 0.95

Tested by

no test coverage detected