(ctx context.Context, userID bson.ObjectID)
| 134 | } |
| 135 | |
| 136 | func (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 | |
| 144 | func (s *UserService) UpsertUserInstructions(ctx context.Context, userID bson.ObjectID, instructions string) (string, error) { |
| 145 | filter := bson.M{"_id": userID} |
nothing calls this directly
no test coverage detected