mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-08-23 11:36:19 -05:00
delete suggestions if vouched
This commit is contained in:
@@ -428,6 +428,9 @@ const addVouch = async ({
|
||||
where: { userId },
|
||||
data: { canVouchFor: null },
|
||||
}),
|
||||
prisma.plusSuggestion.deleteMany({
|
||||
where: { suggestedId: input.vouchedId, tier: input.tier },
|
||||
}),
|
||||
]);
|
||||
|
||||
function vouchedUserAlreadyHasAccess() {
|
||||
|
||||
Reference in New Issue
Block a user