mirror of
https://github.com/thedevs-network/the-guard-bot
synced 2025-08-31 06:05:22 +00:00
fix: rm unique index on username
Users can delete their account or rename their username and it's is released for anyone to pick up Signed-off-by: Muthu Kumar <muthukumar@thefeathers.in>
This commit is contained in:
@@ -33,7 +33,7 @@ User.update(
|
||||
{ $unset: { username: true } },
|
||||
{ multi: true },
|
||||
).then(() =>
|
||||
User.ensureIndex({ fieldName: 'username', sparse: true, unique: true }));
|
||||
User.ensureIndex({ fieldName: 'username', sparse: true }));
|
||||
|
||||
const normalizeTgUser = R.pipe(
|
||||
R.pick([ 'first_name', 'id', 'last_name', 'username' ]),
|
||||
|
Reference in New Issue
Block a user