🧑💻 Fixed some more code smells
This commit is contained in:
parent
4c348a6e73
commit
26f9420f67
1 changed files with 3 additions and 6 deletions
|
@ -39,16 +39,13 @@ export const execute = async (client: Client, role: IShopRole) => {
|
||||||
roleId,
|
roleId,
|
||||||
guildId,
|
guildId,
|
||||||
})
|
})
|
||||||
.then(async () => {
|
.then(() => {
|
||||||
logger.silly(
|
logger.silly(
|
||||||
`Shop role document ${roleId} has been deleted from user ${userId}.`
|
`Shop role document ${roleId} has been deleted from user ${userId}.`
|
||||||
);
|
);
|
||||||
})
|
})
|
||||||
.catch(async (err) => {
|
.catch(() => {
|
||||||
throw new Error(
|
throw new Error("Failed deleting shop role from user.");
|
||||||
`Error deleting shop role document ${roleId} from user ${userId}.`,
|
|
||||||
err
|
|
||||||
);
|
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
|
|
Loading…
Add table
Reference in a new issue