@@ -107,8 +107,7 @@ export const processFoodInput = async (
107107 method : 'GET' ,
108108 }
109109 ) ;
110- // eslint-disable-next-line @typescript-eslint/no-explicit-any
111- } catch ( err : any ) {
110+ } catch ( err : unknown ) {
112111 error (
113112 userLoggingLevel ,
114113 '❌ [Nutrition Coach] Error searching for exact food match:' ,
@@ -136,8 +135,7 @@ export const processFoodInput = async (
136135 method : 'GET' ,
137136 }
138137 ) ;
139- // eslint-disable-next-line @typescript-eslint/no-explicit-any
140- } catch ( err : any ) {
138+ } catch ( err : unknown ) {
141139 error (
142140 userLoggingLevel ,
143141 '❌ [Nutrition Coach] Error searching for broad food match:' ,
@@ -197,8 +195,7 @@ export const processFoodInput = async (
197195 variant_id : food . default_variant . id , // Populate variant_id
198196 } ,
199197 } ) ;
200- // eslint-disable-next-line @typescript-eslint/no-explicit-any
201- } catch ( err : any ) {
198+ } catch ( err : unknown ) {
202199 error (
203200 userLoggingLevel ,
204201 '❌ [Nutrition Coach] Error adding food entry:' ,
@@ -301,8 +298,7 @@ export const addFoodOption = async (
301298 method : 'GET' ,
302299 }
303300 ) ;
304- // eslint-disable-next-line @typescript-eslint/no-explicit-any
305- } catch ( err : any ) {
301+ } catch ( err : unknown ) {
306302 error (
307303 userLoggingLevel ,
308304 `[${ transactionId } ] Error fetching existing food:` ,
@@ -340,8 +336,7 @@ export const addFoodOption = async (
340336 method : 'GET' ,
341337 }
342338 ) ;
343- // eslint-disable-next-line @typescript-eslint/no-explicit-any
344- } catch ( err : any ) {
339+ } catch ( err : unknown ) {
345340 error (
346341 userLoggingLevel ,
347342 `[${ transactionId } ] Error fetching existing variant:` ,
@@ -396,8 +391,7 @@ export const addFoodOption = async (
396391 iron : selectedOption . iron ,
397392 } ,
398393 } ) ;
399- // eslint-disable-next-line @typescript-eslint/no-explicit-any
400- } catch ( err : any ) {
394+ } catch ( err : unknown ) {
401395 error (
402396 userLoggingLevel ,
403397 `[${ transactionId } ] Error creating food variant:` ,
@@ -447,8 +441,7 @@ export const addFoodOption = async (
447441 is_custom : true ,
448442 } ,
449443 } ) ;
450- // eslint-disable-next-line @typescript-eslint/no-explicit-any
451- } catch ( err : any ) {
444+ } catch ( err : unknown ) {
452445 error ( userLoggingLevel , `[${ transactionId } ] Error creating food:` , err ) ;
453446 return {
454447 action : 'none' ,
@@ -485,8 +478,7 @@ export const addFoodOption = async (
485478 variant_id : variantId ,
486479 } ,
487480 } ) ;
488- // eslint-disable-next-line @typescript-eslint/no-explicit-any
489- } catch ( err : any ) {
481+ } catch ( err : unknown ) {
490482 error (
491483 userLoggingLevel ,
492484 `[${ transactionId } ] Error creating food entry:` ,
0 commit comments