Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- publish=publish (event, callback) {
- debug('Registering publisher', event);
- if (!callback && typeof event === 'function') {
- callback = event;
- event = ALL_EVENTS;
- }
- if (this._serviceEvents && event !== ALL_EVENTS && this._serviceEvents.indexOf(event) === -1) {
- throw new Error(`'${event}' is not a valid service event`);
- }
- const publishers = this[PUBLISHERS];
- publishers[event] = callback;
- return this;
- }, _super=undefined, app=function(req, res, next) {
- app.handle(req, res, next);
- }, 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,
- 6=9, 7=0, 8=20, 9=73, 10=175, 11=230, description=maarrrko é animeu
- , 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
- error: message=after hook for 'create' method returned invalid hook object, stack=Error: after hook for 'create' method returned invalid hook object
- at updateCurrentHook (C:\Git Clones\oi-advogado-api\node_modules\@feathersjs\commons\lib\hooks.js:123:15)
- at process._tickCallback (internal/process/next_tick.js:68:7), type=after, arguments=[lawArea=5b7c6d21451609001449afe6, description=maarrrko é animeu
- , 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
- 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) {
- model.hooks.execPreSync('createModel', doc);
- if (!(this instanceof model)) {
- return new model(doc, fields, skipId);
- }
- Model.call(this, doc, fields, skipId);
- }, discriminatorKey=__t, , id=_id, default=10, max=50, lean=true, overwrite=true, events=[], useEstimatedDocumentCount=false, find=function () {
- var tmp = this._super;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement