mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-06-02 22:26:57 -05:00
suggestion gets removed
This commit is contained in:
parent
b7a4b7a707
commit
e62b79fb1e
|
|
@ -46,6 +46,9 @@ const SuggestionForm = ({
|
|||
{
|
||||
query: userLean,
|
||||
},
|
||||
{
|
||||
query: suggestions,
|
||||
},
|
||||
],
|
||||
})
|
||||
|
||||
|
|
|
|||
|
|
@ -148,9 +148,10 @@ const Suggestions = ({
|
|||
{vouch.username}#{vouch.discriminator}{" "}
|
||||
</List.Header>
|
||||
<List.Description>
|
||||
Vouched by {vouch.plus.voucher_user.username}#
|
||||
{vouch.plus.voucher_user.discriminator} to{" "}
|
||||
{vouch.plus.vouch_status === "ONE" ? "+1" : "+2"}
|
||||
Vouched to{" "}
|
||||
{vouch.plus.vouch_status === "ONE" ? "+1" : "+2"} by{" "}
|
||||
{vouch.plus.voucher_user.username}#
|
||||
{vouch.plus.voucher_user.discriminator}
|
||||
</List.Description>
|
||||
</List.Content>
|
||||
</List.Item>
|
||||
|
|
|
|||
|
|
@ -438,6 +438,10 @@ const resolvers = {
|
|||
|
||||
await user.save()
|
||||
await vouchingUser.save()
|
||||
await Suggested.deleteOne({
|
||||
discord_id: args.discord_id,
|
||||
plus_server: args.server,
|
||||
})
|
||||
|
||||
return true
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user