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