hotFix: change require to import
gitea/salix/pipeline/pr-master There was a failure building this commit Details

This commit is contained in:
Alex Moreno 2024-04-18 15:19:19 +02:00
parent 5c5d0ec9dc
commit 87e23b49e7
4 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
import ngModule from '../../module';
const UserError = require('vn-loopback/util/user-error');
import UserError from 'core/lib/user-error';
export default class Controller {
constructor($scope, $element, $http, vnApp, $translate, $state, $location) {

View File

@ -1,5 +1,5 @@
import ngModule from '../../module';
const UserError = require('vn-loopback/util/user-error');
import UserError from 'core/lib/user-error';
export default class Controller {
constructor($scope, $element, $http, vnApp, $translate, $state, $location) {

View File

@ -1,6 +1,6 @@
import ngModule from '../module';
import ModuleMain from 'salix/components/module-main';
const UserError = require('vn-loopback/util/user-error');
import UserError from 'core/lib/user-error';
export default class Ticket extends ModuleMain {
fetchParams($params) {

View File

@ -1,6 +1,6 @@
import ngModule from '../module';
import Descriptor from 'salix/components/descriptor';
const UserError = require('vn-loopback/util/user-error');
import UserError from 'core/lib/user-error';
class Controller extends Descriptor {
constructor($element, $, $rootScope) {
super($element, $);