2026-05-15 23:03:35 +07:00
|
|
|
export type BoostEligibilityInput = {
|
2026-05-16 00:06:13 +07:00
|
|
|
isBoosting: boolean;
|
2026-05-15 23:03:35 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export function assertBoostEligibility(input: BoostEligibilityInput): void {
|
2026-05-16 00:06:13 +07:00
|
|
|
if (!input.isBoosting) {
|
|
|
|
|
throw new Error("User must be currently boosting to claim a custom role");
|
2026-05-15 23:03:35 +07:00
|
|
|
}
|
|
|
|
|
}
|