mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-12 22:47:12 +03:00
make permission reason not optional
This commit is contained in:
@@ -9,7 +9,7 @@ import { getReputation } from "./reputation";
|
||||
|
||||
interface CanSubmitResult {
|
||||
canSubmit: boolean;
|
||||
reason?: string;
|
||||
reason: string;
|
||||
}
|
||||
|
||||
async function lowDownvotes(userID: HashedUserID): Promise<boolean> {
|
||||
@@ -32,7 +32,8 @@ export async function canSubmit(userID: HashedUserID, category: Category): Promi
|
||||
};
|
||||
default:
|
||||
return {
|
||||
canSubmit: true
|
||||
canSubmit: true,
|
||||
reason: ""
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user