Skip to content
This repository has been archived by the owner on Oct 3, 2019. It is now read-only.

Commit

Permalink
HOTFIX #38 arrumando arquivos para a master
Browse files Browse the repository at this point in the history
Signed-off-by: Guilherme Deusdará <guibanci@gmail.com>
  • Loading branch information
gdeusdara committed May 15, 2018
1 parent 9246dfb commit 5a96e02
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 14 deletions.
9 changes: 0 additions & 9 deletions Schedule/Client/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,20 +317,12 @@ module.exports = function api(options) {
fail: '/api/schedule/error'
}
},
error: { GET: true },

listSectorDay: { GET: true,
auth: {
strategy: 'jwt',
fail: '/api/schedule/error'
}
},
listSchedule: { GET: true,
auth: {
strategy: 'jwt',
fail: '/api/schedule/error'
}
},
listSectorMonth: { GET: true,
auth: {
strategy: 'jwt',
Expand All @@ -347,7 +339,6 @@ module.exports = function api(options) {
auth: {
strategy: 'jwt',
fail: '/api/schedule/error'

},
error: {GET: true }
}
Expand Down
2 changes: 1 addition & 1 deletion Schedule/Client/client_schedule.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var express = require('express');
var bodyParser = require('body-parser')
var seneca = require('seneca');
var senecaWeb = require('seneca-web');
var SenecaWeb = require('seneca-web');
var senecaWebAdapterExpress = require('seneca-web-adapter-express');
var Passport = require('passport');
var PassportJwt = require('passport-jwt');
Expand Down
4 changes: 0 additions & 4 deletions Schedule/Server/schedule.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,8 @@ seneca()
.add('role:schedule,cmd:listSectorWeek',function(msg,respond){
var sector = msg.sector;
var week = msg.week;
console.log(week , sector);
console.log(sector);
console.log(week);
var schedule = this.make('schedule');
schedule.list$({sector , week}, function(error,schedule){
respond(null,schedule);
console.log(schedule);
});
})

0 comments on commit 5a96e02

Please sign in to comment.