@@ -122,15 +122,13 @@ component accessors="true" singleton{
122
122
* Do the rotation
123
123
*/
124
124
function doRotation (){
125
- var qLogs = " " ;
126
- var cols = variables .columns ;
127
125
var targetDate = dateAdd ( " d" , " -#variables .properties .rotationDays #" , now () );
128
126
129
127
if ( variables .log .canInfo () ){
130
128
variables .log .info ( " DBTokenStorage starting token rotation using (#variables .properties .rotationDays #) rotation days" );
131
129
}
132
130
133
- var qResults = queryExecute (
131
+ queryExecute (
134
132
" DELETE
135
133
FROM #getTable () #
136
134
WHERE expiration < :targetDate
@@ -139,7 +137,8 @@ component accessors="true" singleton{
139
137
targetDate = { cfsqltype = " timestamp" , value = targetDate }
140
138
},
141
139
{
142
- datasource = variables .properties .dsn
140
+ datasource = variables .properties .dsn ,
141
+ result = " local.qResults"
143
142
}
144
143
);
145
144
@@ -186,7 +185,7 @@ component accessors="true" singleton{
186
185
token = { cfsqltype = " longvarchar" ,value = arguments .token },
187
186
expiration = { cfsqltype = " timestamp" , value = jwtService .fromEpoch ( arguments .payload .exp ) },
188
187
issued = { cfsqltype = " timestamp" , value = jwtService .fromEpoch ( arguments .payload .iat ) },
189
- subject = { cfsqltype = " varchar" , value = arguments .payload .sub },
188
+ subject = { cfsqltype = " varchar" , value = arguments .payload .sub }
190
189
},
191
190
{
192
191
datasource = variables .properties .dsn
@@ -217,12 +216,13 @@ component accessors="true" singleton{
217
216
" ,
218
217
{
219
218
cacheKey : arguments .key ,
220
- now : { cfsqltype = " timestamp" , value = now () },
219
+ now : { cfsqltype = " timestamp" , value = now () }
221
220
},
222
221
{
223
222
datsource = variables .properties .dsn
224
223
}
225
224
);
225
+
226
226
return qResults .recordcount > 0 ;
227
227
}
228
228
0 commit comments