@@ -36,14 +36,14 @@ function processVersions( repo, fn ) {
36
36
Step (
37
37
// get all tags for the repo
38
38
function ( ) {
39
- pluginsDb . getTags ( repo . getId ( ) , this . parallel ( ) ) ;
39
+ pluginsDb . getTags ( repo . id , this . parallel ( ) ) ;
40
40
repo . getVersionTags ( this . parallel ( ) ) ;
41
41
} ,
42
42
43
43
// filter to new versions
44
44
function ( error , processedTags , tags ) {
45
45
if ( error ) {
46
- retry . log ( "processVersions" , repo . getId ( ) ) ;
46
+ retry . log ( "processVersions" , repo . id ) ;
47
47
return fn ( error ) ;
48
48
}
49
49
@@ -58,7 +58,7 @@ function processVersions( repo, fn ) {
58
58
// get releases
59
59
function ( error , tags ) {
60
60
if ( error ) {
61
- retry . log ( "processVersions" , repo . getId ( ) ) ;
61
+ retry . log ( "processVersions" , repo . id ) ;
62
62
return fn ( error ) ;
63
63
}
64
64
@@ -76,7 +76,7 @@ function processVersions( repo, fn ) {
76
76
// filter to valid releases
77
77
function ( error , tags , releases ) {
78
78
if ( error ) {
79
- retry . log ( "processVersions" , repo . getId ( ) ) ;
79
+ retry . log ( "processVersions" , repo . id ) ;
80
80
return fn ( error ) ;
81
81
}
82
82
@@ -88,15 +88,15 @@ function processVersions( repo, fn ) {
88
88
}
89
89
90
90
// track invalid tags so we don't process them on each update
91
- pluginsDb . addTag ( repo . getId ( ) , tags [ i ] , invalidGroup ( ) ) ;
91
+ pluginsDb . addTag ( repo . id , tags [ i ] , invalidGroup ( ) ) ;
92
92
return false ;
93
93
} ) ) ;
94
94
} ,
95
95
96
96
// process the releases
97
97
function ( error , releases ) {
98
98
if ( error ) {
99
- retry . log ( "processVersions" , repo . getId ( ) ) ;
99
+ retry . log ( "processVersions" , repo . id ) ;
100
100
return fn ( error ) ;
101
101
}
102
102
@@ -121,20 +121,20 @@ function processRelease( repo, release, fn ) {
121
121
// find out who owns this plugin
122
122
// if there is no owner, then set the user as the owner
123
123
function ( ) {
124
- pluginsDb . getOrSetOwner ( release . package . name , repo . userName , this ) ;
124
+ pluginsDb . getOrSetOwner ( release . package . name , repo . userId , this ) ;
125
125
} ,
126
126
127
127
// verify the user is the owner
128
128
function ( error , owner ) {
129
129
if ( error ) {
130
- retry . log ( "processRelease" , repo . getId ( ) , release . tag ) ;
130
+ retry . log ( "processRelease" , repo . id , release . tag ) ;
131
131
return fn ( error ) ;
132
132
}
133
133
134
134
// the plugin is owned by someone else
135
- if ( owner !== repo . userName ) {
135
+ if ( owner !== repo . userId ) {
136
136
// TODO: report error to user
137
- logger . log ( repo . userName + " attempted to add " + release . package . name + " which is owned by " + owner ) ;
137
+ logger . log ( repo . userId + " attempted to add " + release . package . name + " which is owned by " + owner ) ;
138
138
return fn ( null , null ) ;
139
139
}
140
140
@@ -143,13 +143,13 @@ function processRelease( repo, release, fn ) {
143
143
144
144
// track the new release
145
145
function ( error , owner ) {
146
- pluginsDb . addRelease ( repo . getId ( ) , release , this ) ;
146
+ pluginsDb . addRelease ( repo . id , release , this ) ;
147
147
} ,
148
148
149
149
// finished processing release
150
150
function ( error ) {
151
151
if ( error ) {
152
- retry . log ( "processRelease" , repo . getId ( ) , release . tag ) ;
152
+ retry . log ( "processRelease" , repo . id , release . tag ) ;
153
153
return fn ( error ) ;
154
154
}
155
155
@@ -167,23 +167,23 @@ function processMeta( repo, fn ) {
167
167
168
168
function ( error , package ) {
169
169
if ( error ) {
170
- retry . log ( "processMeta" , repo . getId ( ) ) ;
170
+ retry . log ( "processMeta" , repo . id ) ;
171
171
return fn ( error ) ;
172
172
}
173
173
174
174
if ( ! package || ! package . name ) {
175
175
return fn ( null ) ;
176
176
}
177
177
178
- pluginsDb . updatePlugin ( package . name , repo . userName , {
178
+ pluginsDb . updatePlugin ( package . name , repo . userId , {
179
179
watchers : repo . watchers ,
180
180
forks : repo . forks
181
181
} , this ) ;
182
182
} ,
183
183
184
184
function ( error ) {
185
185
if ( error ) {
186
- retry . log ( "processMeta" , repo . getId ( ) ) ;
186
+ retry . log ( "processMeta" , repo . id ) ;
187
187
return fn ( error ) ;
188
188
}
189
189
0 commit comments