mirror of
https://github.com/thedevs-network/the-guard-bot
synced 2025-09-05 00:25:19 +00:00
removed custom command's adding step and make it inline
This commit is contained in:
@@ -14,8 +14,8 @@ Command.ensureIndex({
|
||||
|
||||
const addCommand = command =>
|
||||
Command.update(
|
||||
{ id: command.id, isActive: false },
|
||||
{ id: command.id, isActive: false, state: 'add', },
|
||||
{ id: command.id },
|
||||
Object.assign({}, command, { isActive: false }),
|
||||
{ upsert: true }
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user