mirror of
https://github.com/thedevs-network/the-guard-bot
synced 2025-08-31 06:05:22 +00:00
used update instead of insert method for group db
This commit is contained in:
@@ -16,8 +16,7 @@ Group.ensureIndex({
|
||||
});
|
||||
|
||||
const addGroup = group =>
|
||||
Group.insert(group)
|
||||
.catch(logError);
|
||||
Group.update(group.id, group, { upsert: true });
|
||||
|
||||
const listGroups = () =>
|
||||
Group.find({});
|
||||
|
Reference in New Issue
Block a user