File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ require_relative '../statistics.rb'
3
3
namespace :statistics do
4
4
desc '月次/週次のイベント履歴を集計します'
5
5
task :aggregation , [ :from , :to ] => :environment do |tasks , args |
6
- Providers ::Facebook . access_token = Koala ::Facebook ::OAuth . new ( ENV [ 'FACEBOOK_APP_ID' ] , ENV [ 'FACEBOOK_APP_SECRET' ] ) . get_app_access_token
6
+ EventService :: Providers ::Facebook . access_token = Koala ::Facebook ::OAuth . new ( ENV [ 'FACEBOOK_APP_ID' ] , ENV [ 'FACEBOOK_APP_SECRET' ] ) . get_app_access_token
7
7
Statistics ::Aggregation . new ( args ) . run
8
8
end
9
9
@@ -14,9 +14,9 @@ namespace :statistics do
14
14
require 'pp'
15
15
16
16
puts 'Searching Connpass'
17
- pp Providers ::Connpass . new . search ( keyword : args [ :keyword ] )
17
+ pp EventService :: Providers ::Connpass . new . search ( keyword : args [ :keyword ] )
18
18
19
19
puts 'Searching Doorkeeper'
20
- pp Providers ::Doorkeeper . new . search ( keyword : args [ :keyword ] )
20
+ pp EventService :: Providers ::Doorkeeper . new . search ( keyword : args [ :keyword ] )
21
21
end
22
22
end
You can’t perform that action at this time.
0 commit comments