Update database.py
Browse files- database.py +3 -1
database.py
CHANGED
@@ -33,9 +33,11 @@ class Database:
|
|
33 |
try:
|
34 |
await self.client.admin.command("ping")
|
35 |
LOGS.info(f"Database Connection Established!")
|
|
|
|
|
36 |
await self.user_blacklists.create_index("unfreeze_at")
|
37 |
await self.user_blacklists.create_index("is_frozen")
|
38 |
-
LOGS.info(f"Database Create index Connected!")
|
39 |
except Exception as e:
|
40 |
LOGS.info(f"DatabaseErr: {e} ")
|
41 |
quit(1)
|
|
|
33 |
try:
|
34 |
await self.client.admin.command("ping")
|
35 |
LOGS.info(f"Database Connection Established!")
|
36 |
+
await self.user_premium.create_index("last_reset")
|
37 |
+
await self.user_premium.create_index("user_id")
|
38 |
await self.user_blacklists.create_index("unfreeze_at")
|
39 |
await self.user_blacklists.create_index("is_frozen")
|
40 |
+
LOGS.info(f"Database Create index full Connected!")
|
41 |
except Exception as e:
|
42 |
LOGS.info(f"DatabaseErr: {e} ")
|
43 |
quit(1)
|