@@ -66,7 +66,6 @@ export class UserPreferencesService {
6666 throw new Error ( data . error || 'Invalid response from server' )
6767 }
6868
69- console . log ( 'Successfully fetched user preferences:' , data . preferences )
7069 return data . preferences
7170
7271 } catch ( error ) {
@@ -80,8 +79,6 @@ export class UserPreferencesService {
8079 */
8180 static async updateUserPreferences ( updates : UpdateUserPreferencesInput ) : Promise < UserPreferences > {
8281 try {
83- console . log ( 'Updating user preferences:' , updates )
84-
8582 const response = await fetch ( `${ this . baseUrl } /api/users/me/preferences` , {
8683 method : 'POST' ,
8784 headers : {
@@ -104,8 +101,6 @@ export class UserPreferencesService {
104101 throw new Error ( data . error || 'Failed to update preferences' )
105102 }
106103
107- console . log ( 'Successfully updated user preferences:' , data . message )
108-
109104 // Return updated preferences by fetching them again
110105 return await this . getUserPreferences ( )
111106
@@ -173,8 +168,6 @@ export class UserPreferencesService {
173168 */
174169 static async completeWalkthrough ( ) : Promise < void > {
175170 try {
176- console . log ( 'Marking walkthrough as completed via API' )
177-
178171 const response = await fetch ( `${ this . baseUrl } /api/users/me/preferences/walkthrough/complete` , {
179172 method : 'POST' ,
180173 headers : {
@@ -196,8 +189,6 @@ export class UserPreferencesService {
196189 throw new Error ( data . error || 'Failed to complete walkthrough' )
197190 }
198191
199- console . log ( 'Successfully completed walkthrough:' , data . message )
200-
201192 } catch ( error ) {
202193 console . error ( 'Error completing walkthrough:' , error )
203194 throw error
@@ -209,8 +200,6 @@ export class UserPreferencesService {
209200 */
210201 static async cancelWalkthrough ( ) : Promise < void > {
211202 try {
212- console . log ( 'Marking walkthrough as cancelled via API' )
213-
214203 const response = await fetch ( `${ this . baseUrl } /api/users/me/preferences/walkthrough/cancel` , {
215204 method : 'POST' ,
216205 headers : {
@@ -232,8 +221,6 @@ export class UserPreferencesService {
232221 throw new Error ( data . error || 'Failed to cancel walkthrough' )
233222 }
234223
235- console . log ( 'Successfully cancelled walkthrough:' , data . message )
236-
237224 } catch ( error ) {
238225 console . error ( 'Error cancelling walkthrough:' , error )
239226 throw error
@@ -308,8 +295,6 @@ export class UserPreferencesService {
308295 */
309296 static async acknowledgeNotification ( notificationId : string ) : Promise < void > {
310297 try {
311- console . log ( 'Acknowledging notification:' , notificationId )
312-
313298 const response = await fetch ( `${ this . baseUrl } /api/users/me/preferences/notifications/acknowledge` , {
314299 method : 'POST' ,
315300 headers : {
@@ -334,8 +319,6 @@ export class UserPreferencesService {
334319 throw new Error ( data . error || 'Failed to acknowledge notification' )
335320 }
336321
337- console . log ( 'Successfully acknowledged notification:' , data . message )
338-
339322 } catch ( error ) {
340323 console . error ( 'Error acknowledging notification:' , error )
341324 throw error
0 commit comments