Use correct collection update method
This commit is contained in:
parent
3f12bdf9ec
commit
cb02a45e4b
1 changed files with 2 additions and 2 deletions
|
@ -91,7 +91,7 @@ async def unmute():
|
||||||
{"$set": {"active": False}},
|
{"$set": {"active": False}},
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
db.jarvis.mutes.update_many(updates)
|
db.jarvis.mutes.bulk_write(updates)
|
||||||
|
|
||||||
|
|
||||||
@loop(minutes=30)
|
@loop(minutes=30)
|
||||||
|
@ -116,7 +116,7 @@ async def unban():
|
||||||
{"$set": {"active": False}},
|
{"$set": {"active": False}},
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
db.jarvis.bans.update_many(updates)
|
db.jarvis.bans.bulk_write(updates)
|
||||||
|
|
||||||
|
|
||||||
def run(ctx=None):
|
def run(ctx=None):
|
||||||
|
|
Loading…
Add table
Reference in a new issue