Chore: Remove dead code related to billing (#935)
- remove subscription model - remove billing-related code
This commit is contained in:
parent
051871a3cd
commit
52d28105e4
84 changed files with 27 additions and 1240 deletions
|
@ -1,15 +1,8 @@
|
|||
/* eslint no-console: 0 */
|
||||
import constants from '../constants';
|
||||
import Auth from '../api/auth';
|
||||
import router from '../routes';
|
||||
|
||||
const parseErrorCode = error => {
|
||||
const errorStatus = error.response ? error.response.status : undefined;
|
||||
// 901, 902 are used to identify billing related issues
|
||||
if ([901, 902].includes(errorStatus)) {
|
||||
const name = Auth.isAdmin() ? 'billing' : 'billing_deactivated';
|
||||
router.push({ name });
|
||||
}
|
||||
return Promise.reject(error);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue