Skip to content

Commit

Permalink
fix: 修复错误的索引字段
Browse files Browse the repository at this point in the history
  • Loading branch information
FHU-yezi committed Mar 5, 2024
1 parent 86b6915 commit 208bf4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/daily_update_ranking_record.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class DailyUpdateRankingRecordDocument(Documemt, **DOCUMENT_OBJECT_CONFIG):

async def init_db() -> None:
await COLLECTION.create_indexes(
[IndexModel(["date", "user_slug"], unique=True)],
[IndexModel(["date", "userSlug"], unique=True)],
)


Expand Down

0 comments on commit 208bf4d

Please sign in to comment.