dtolabs / yana2

Yet Another Node Authority ... because you wanted an agile Real-Time Service Model (RTSM)
8 stars 1 forks source link

Remove strange getNodeTypes method from NodeController #190

Closed ahonor closed 12 years ago

ahonor commented 12 years ago

Remove the following:


    def getNodeTypes(){
        def response = []
        List origList = Topic.executeQuery( "select  new map(T.id as id, T.topicName as topicName) from Topic T");
        List delList = PostTopics.executeQuery( "select  new map(T.id as id, T.topicName as topicName) from Topic T left join T.posts P where P.post.id=?",[params.id.toLong()]);
        List addList = origList - delList

        //List origList = NodeType.findAll()

        response = [dellist:dellist,addlist:addlist];
        render response as JSON
    }

Similar to #187

See #169