Value CommentsTable::TypeAccessor(const Value& row)
{
- Service::Ptr svc = Service::GetOwnerByCommentID(row);
+ Comment::Ptr comment = static_cast<Comment::Ptr>(row);
+ Service::Ptr svc = Service::GetOwnerByCommentID(comment->GetId());
if (!svc)
return Empty;
Value CommentsTable::IsServiceAccessor(const Value& row)
{
- Service::Ptr svc = Service::GetOwnerByCommentID(row);
+ Comment::Ptr comment = static_cast<Comment::Ptr>(row);
+ Service::Ptr svc = Service::GetOwnerByCommentID(comment->GetId());
if (!svc)
return Empty;