We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f160fe commit 47c7b3eCopy full SHA for 47c7b3e
1 file changed
apps/sim/lib/webhooks/polling/google-drive.ts
@@ -151,12 +151,12 @@ export const googleDrivePollingHandler: PollingProviderHandler = {
151
MAX_KNOWN_FILE_IDS
152
)
153
154
- const allFailed = processedCount === 0 && failedCount > 0
+ const anyFailed = failedCount > 0
155
await updateWebhookProviderConfig(
156
webhookId,
157
{
158
- pageToken: allFailed ? config.pageToken : newStartPageToken,
159
- knownFileIds: allFailed ? existingKnownIds : mergedKnownIds,
+ pageToken: anyFailed ? config.pageToken : newStartPageToken,
+ knownFileIds: anyFailed ? existingKnownIds : mergedKnownIds,
160
},
161
logger
162
0 commit comments