Cleanup code & make sure it has a common code style
This commit is contained in:
parent
4a8b15e7be
commit
a8a7f70a3c
132 changed files with 6821 additions and 6595 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import axios from 'axios'
|
||||
import {reduce, replace} from 'lodash'
|
||||
import {objectToSnakeCase} from '../helpers/case'
|
||||
import {objectToSnakeCase} from '@/helpers/case'
|
||||
|
||||
export default class AbstractService {
|
||||
|
||||
|
|
@ -380,7 +380,7 @@ export default class AbstractService {
|
|||
})
|
||||
.then(response => {
|
||||
const result = this.modelCreateFactory(response.data)
|
||||
if(typeof model.maxRight !== 'undefined') {
|
||||
if (typeof model.maxRight !== 'undefined') {
|
||||
result.maxRight = model.maxRight
|
||||
}
|
||||
return Promise.resolve(result)
|
||||
|
|
@ -406,7 +406,7 @@ export default class AbstractService {
|
|||
})
|
||||
.then(response => {
|
||||
const result = this.modelUpdateFactory(response.data)
|
||||
if(typeof model.maxRight !== 'undefined') {
|
||||
if (typeof model.maxRight !== 'undefined') {
|
||||
result.maxRight = model.maxRight
|
||||
}
|
||||
return Promise.resolve(result)
|
||||
|
|
|
|||
Reference in a new issue