daily pastebin goal
25%
SHARE
TWEET

Untitled

a guest Jan 20th, 2019 101 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. publish=publish (event, callback) {
  2.       debug('Registering publisher', event);
  3.  
  4.       if (!callback && typeof event === 'function') {
  5.         callback = event;
  6.         event = ALL_EVENTS;
  7.       }
  8.  
  9.       if (this._serviceEvents && event !== ALL_EVENTS && this._serviceEvents.indexOf(event) === -1) {
  10.         throw new Error(`'${event}' is not a valid service event`);
  11.       }
  12.  
  13.       const publishers = this[PUBLISHERS];
  14.  
  15.       publishers[event] = callback;
  16.  
  17.       return this;
  18.     }, _super=undefined, app=function(req, res, next) {
  19.     app.handle(req, res, next);
  20.   }, method=create, path=base/services, $ref=$["hook"]["arguments"][0], $ref=$["hook"]["arguments"][1], status=1, _bsontype=ObjectID, 0=92, 1=69, 2=75, 3=130, 4=148, 5=184, 6=57, 7=48, 8=144, 9=40, 10=26, 11=75, _bsontype=ObjectID, 0=91, 1=124, 2=109, 3=33, 4=69, 5=22,
  21. 6=9, 7=0, 8=20, 9=73, 10=175, 11=230, description=maarrrko é animeu
  22. , userName=lucas, _bsontype=ObjectID, 0=92, 1=69, 2=63, 3=205, 4=91, 5=135, 6=247, 7=14, 8=192, 9=254, 10=136, 11=98, touches=[], createdAt=Mon Jan 21 2019 02:33:06 GMT-0200 (GMT-02:00), updatedAt=Mon Jan 21 2019 02:33:06 GMT-0200 (GMT-02:00), __v=0
  23. error:  message=after hook for 'create' method returned invalid hook object, stack=Error: after hook for 'create' method returned invalid hook object
  24.     at updateCurrentHook (C:\Git Clones\oi-advogado-api\node_modules\@feathersjs\commons\lib\hooks.js:123:15)
  25.     at process._tickCallback (internal/process/next_tick.js:68:7), type=after, arguments=[lawArea=5b7c6d21451609001449afe6, description=maarrrko é animeu
  26. , userName=lucas, user=5c453fcd5b87f70ec0fe8862, authenticated=true, , , host=179.233.123.240:3030, connection=keep-alive, content-length=75, pragma=no-cache, cache-control=no-cache, accept=application/json, origin=http://localhost:8080, authorization=eyJhbGciOiJIUzI1NiIsInR5cCI6ImFjY2VzcyJ9.eyJ1c2VySWQiOiI1YzQ1M2ZjZDViODdmNzBlYzBmZTg4NjIiLCJpYXQiOjE1NDgwNDIxOTEsImV4cCI6MTU5OTg4MjE5MSwiYXVkIjoiaHR0cHM6Ly95b3VyZG9tYWluLmNvbSIsImlzcyI6ImZlYXRoZXJzIiwic3ViIjoiYW5vbnltb3VzIiwianRpIjoiYjdhZWMyNzctYjZjMC00YTQyLTkyODEtY2QwMTE2MDU3YjA1In0.pKgYvffbZHjrpb_l5taZ5H_BbO7jCRICY3DfakoUYkE, user-agent=Mozilla/5.0 (Linux; Android 5.0; SM-G900P Build/LRX21T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Mobile Safari/537.36, content-type=application/json, referer=http://localhost:8080/, accept-encoding=gzip, deflate, accept-language=pt-BR,pt;q=0.9,en-US;q=0.8,en;q=0.7, cookies=undefined, _bsontype=ObjectID, 0=92, 1=69, 2=63, 3=205, 4=91, 5=135, 6=247, 7=14, 8=192, 9=254, 10=136, 11=98, country=BRA, type=Point, coordinates=[0, 0], isVerified=true, name=lucas, email=lucascercun@gmail.com, phone=21986012341, password=$2a$13$Hc39Ev5FziRYlsNuuC2u2O3PIs.NUPDNKf7qEdXq71H2gS.MtRah6, createdAt=Mon Jan 21 2019
  27. 01:43:09 GMT-0200 (GMT-02:00), updatedAt=Mon Jan 21 2019 01:43:12 GMT-0200 (GMT-02:00), __v=0, device_id=null, userId=5c453fcd5b87f70ec0fe8862, _provider=rest, isExtended=true], Model=function model(doc, fields, skipId) {
  28.       model.hooks.execPreSync('createModel', doc);
  29.       if (!(this instanceof model)) {
  30.         return new model(doc, fields, skipId);
  31.       }
  32.       Model.call(this, doc, fields, skipId);
  33.     }, discriminatorKey=__t, , id=_id, default=10, max=50, lean=true, overwrite=true, events=[], useEstimatedDocumentCount=false, find=function () {
  34.       var tmp = this._super;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top