File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -199,11 +199,11 @@ module.exports = {
199199 }
200200
201201 // Validate rate limit settings if provided
202- if ( rateLimitSettings !== null && rateLimitSettings !== undefined ) {
202+ if ( ! ! rateLimitSettings ) {
203203 const { N, T } = rateLimitSettings ;
204204
205205 // Validate that N and T exist
206- if ( N === undefined || N === null || T === undefined || T === null ) {
206+ if ( ! N || ! T ) {
207207 throw new UserInputError (
208208 'Rate limit settings must contain both N (threshold) and T (period) fields.'
209209 ) ;
@@ -245,7 +245,7 @@ module.exports = {
245245 rateLimitSettings : rateLimitSettings || null ,
246246 } ) ;
247247 } catch ( err ) {
248- throw new ApolloError ( 'Something went wrong' ) ;
248+ throw new ApolloError ( 'Failed to update project rate limit settings' , { originalError : err } ) ;
249249 }
250250 } ,
251251
You can’t perform that action at this time.
0 commit comments