src/server/helpers/critiquebrainz.ts
Function submitReviewToCB
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export async function submitReviewToCB(
accessToken: string,
review: Record<string, any>
): Promise<any> {
const cbEntityType = mapEntityType[review.entityType];
Function fetchAccessToken
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export async function fetchAccessToken(
code: string,
editorId: number,
orm: Record<string, any>
) : Promise<any> {
Function refreshAccessToken
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export async function refreshAccessToken(
editorId: number,
refreshToken: string,
orm: Record<string, any>
): Promise<any> {