Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/api/pushNotifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ export class PushNotificationClient {

logger.debug(`Fetched ${response.data.tokens.length} push tokens`)

// Log detailed token information (FULL TOKENS FOR TESTING)
// Log token information
response.data.tokens.forEach((token, index) => {
logger.debug(`[PUSH] Token ${index + 1}: id=${token.id}, token=${token.token}, created=${new Date(token.createdAt).toISOString()}, updated=${new Date(token.updatedAt).toISOString()}`)
logger.debug(`[PUSH] Token ${index + 1}: id=${token.id}, created=${new Date(token.createdAt).toISOString()}, updated=${new Date(token.updatedAt).toISOString()}`)
})

return response.data.tokens
Expand Down Expand Up @@ -138,9 +138,9 @@ export class PushNotificationClient {
const tokens = await this.fetchPushTokens()
logger.debug(`[PUSH] Fetched ${tokens.length} push tokens`)

// Log token details for debugging (FULL TOKENS FOR TESTING)
// Log token details for debugging
tokens.forEach((token, index) => {
logger.debug(`[PUSH] Using token ${index + 1}: id=${token.id}, token=${token.token}`)
logger.debug(`[PUSH] Using token ${index + 1}: id=${token.id}`)
})

if (tokens.length === 0) {
Expand All @@ -150,7 +150,7 @@ export class PushNotificationClient {

// Create messages for all tokens
const messages: ExpoPushMessage[] = tokens.map((token, index) => {
logger.debug(`[PUSH] Creating message ${index + 1} for token: ${token.token}`)
logger.debug(`[PUSH] Creating message ${index + 1} for token`)
return {
to: token.token,
title,
Expand All @@ -170,4 +170,4 @@ export class PushNotificationClient {
}
})()
}
}
}