Commit a08369d0 by Alex MacCaw

fix company flagging

parent 732b660e
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
var assert = require('assert'); var assert = require('assert');
var resource = require('./resource'); var resource = require('./resource');
var _ = require('lodash');
module.exports = resource.create('Company', { module.exports = resource.create('Company', {
api: 'company', api: 'company',
...@@ -14,7 +15,7 @@ module.exports = resource.create('Company', { ...@@ -14,7 +15,7 @@ module.exports = resource.create('Company', {
return this.client.request(_.extend({ return this.client.request(_.extend({
api: this._options.api, api: this._options.api,
method: 'post', method: 'post',
path: _.template('/people/<%= id %>/flag', this), path: _.template('/companies/<%= id %>/flag', this),
query: params || {} query: params || {}
}, options)); }, options));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment