-
Notifications
You must be signed in to change notification settings - Fork 0
Fix TypeScript compilation errors #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -215,18 +215,18 @@ class GmailAIService { | |
|
|
||
| return { | ||
| success: true, | ||
| processedCount: result.newEmails || 0, | ||
| emails: [], | ||
| processedCount: result.synced || 0, // Use result.synced (number) | ||
| emails: result.newEmails, // Populate with actual new emails | ||
| batchInfo: { | ||
| batchId: `smart_${Date.now()}`, | ||
| queryFilter: strategies.join(','), | ||
| timestamp: new Date().toISOString() | ||
| }, | ||
| statistics: { | ||
| totalProcessed: result.newEmails || 0, | ||
| successfulExtractions: result.newEmails || 0, | ||
| totalProcessed: result.synced || 0, // Use result.synced | ||
| successfulExtractions: result.synced || 0, // Use result.synced | ||
| failedExtractions: 0, | ||
| aiAnalysesCompleted: result.newEmails || 0, | ||
| aiAnalysesCompleted: result.synced || 0, // Use result.synced (assuming all are analyzed) | ||
| lastSync: new Date().toISOString() | ||
|
Comment on lines
+218
to
230
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. String interpolation still uses the array, not the count
- details: `${result.newEmails} emails retrieved using ${strategies.length || 'default'} strategies`,
+ details: `${result.synced} emails retrieved using ${strategies.length || 'default'} strategies`,Adjust to avoid noisy logs and ensure monitoring dashboards receive the intended numeric value.
🤖 Prompt for AI Agents |
||
| } | ||
| }; | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.