echo-dimigo/echo-front

View on GitHub
src/api/tag/user.js

Summary

Maintainability
A
1 hr
Test Coverage

Showing 3 of 3 total issues

Similar blocks of code found in 3 locations. Consider refactoring.
Open

async getAllTag () {
const { data: { tags } } = await axios.get('/echo/tags')
return tags.map(Tag)
},
Severity: Minor
Found in src/api/tag/user.js and 2 other locations - About 40 mins to fix
src/api/comment/user.js on lines 19..23
src/api/tag/user.js on lines 19..23

Similar blocks of code found in 3 locations. Consider refactoring.
Open

async getAllInvitations () {
const { data: { tags } } =
await axios.get('/echo/user_tag/my/invitations')
return tags.map(Tag)
},
Severity: Minor
Found in src/api/tag/user.js and 2 other locations - About 40 mins to fix
src/api/comment/user.js on lines 19..23
src/api/tag/user.js on lines 5..8

Similar blocks of code found in 2 locations. Consider refactoring.
Open

async getTagByIdx (idx) {
const { data: tag } = await axios.get(`/echo/tag/${idx}`)
return Tag(tag)
},
Severity: Minor
Found in src/api/tag/user.js and 1 other location - About 40 mins to fix
src/api/post/user.js on lines 10..13
Category
Status