randydev commited on
Commit
ab9ce37
·
verified ·
1 Parent(s): 2149944

Update database.py

Browse files
Files changed (1) hide show
  1. database.py +1 -1
database.py CHANGED
@@ -33,7 +33,7 @@ class Database:
33
  try:
34
  await self.client.admin.command("ping")
35
  LOGS.info(f"Database Connection Established!")
36
- await self.user_premium.create_index("user_id", unique=True)
37
  await self.user_premium.create_index("last_reset")
38
  await self.user_premium.create_index("premium_expiry")
39
  await self.user_blacklists.create_index("unfreeze_at")
 
33
  try:
34
  await self.client.admin.command("ping")
35
  LOGS.info(f"Database Connection Established!")
36
+ await self.user_premium.create_index("user_id")
37
  await self.user_premium.create_index("last_reset")
38
  await self.user_premium.create_index("premium_expiry")
39
  await self.user_blacklists.create_index("unfreeze_at")