mirror of
https://github.com/Comfy-Org/Comfy-PR.git
synced 2026-11-04 23:37:33 +00:00
[PR #162] [MERGED] fix: resolve MongoDB IndexOptionsConflict for status+mtime index on SlackMsgs #162
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/Comfy-PR#162
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Comfy-Org/Comfy-PR/pull/162
Author: @comfy-pr-bot
Created: 2/17/2026
Status: ✅ Merged
Merged: 2/17/2026
Merged by: @snomiao
Base:
main← Head:fix/slack-index-conflict📝 Commits (1)
31cd351fix: resolve MongoDB IndexOptionsConflict for status+mtime index on SlackMsgs📊 Changes
1 file changed (+1 additions, -7 deletions)
View changed files
📝
lib/slack/SlackMsgs.ts(+1 -7)📄 Description
Summary
{ status: 1, mtime: 1 }already exists in production MongoDB with the auto-generated namestatus_1_mtime_1idx_status_mtime, causingMongoServerErrorcode 85 (IndexOptionsConflict) on every hourly runFix
Remove the custom
nameoption fromSlackMsgs.createIndex()so the call is idempotent — MongoDB will match the existing index by key pattern and skip creation.Test plan
IndexOptionsConflict🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.