module.exports = (api) => {
  const client = api.client;
  const q = client.queries;

  const addInterest = (keyspace, user, type, keyword, next) => {
    const interestValues = [user, type, keyword];
    client.execute(q(keyspace, 'upsertInterest'), interestValues, {}, (err) => {
      if (err) { return next(err); }
      next(null, { user, type, keyword });
    });
  };

  const getUsers = (keyspace, type, keyword, next) => {
    api.common.get(keyspace, 'selectUsersByInterest', [type, keyword], 'many', (err, results) => {
      if (err) { return next(err); }
      if (!results) { return next(api.common.error(404, `Unable to find users by interest: ${type}:${keyword}`)); }
      next(null, results);
    });
  };

  return {
    addInterest,
    getUsers,
  };
};

@@ -433,22 +433,24 @@
     
-api.common.get
+client.execute(q
 (key
@@ -479,16 +479,17 @@
 nterest'
+)
 , %5Btype,
@@ -503,14 +503,10 @@
 d%5D, 
-'many'
+%7B%7D
 , (e
@@ -564,124 +564,8 @@
 ; %7D%0A
-      if (!results) %7B return next(api.common.error(404, %60Unable to find users by interest: $%7Btype%7D:$%7Bkeyword%7D%60)); %7D%0A
     

use client.execute for getUsers in Interests