src/common/actions/chapter.js
Function addInviteCodeToChapter
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function addInviteCodeToChapter(id, inviteCodeData) {
// because invite codes are stored in `idm` but chapter data lives in
// `echo`, we first need to create the invite code through `idm`, then
// associate it with the chapter in `echo`
return {