removed debugging elements
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Pau 2022-10-17 07:38:54 +02:00
parent 594cee12f3
commit 1603619d81
2 changed files with 0 additions and 9 deletions

View File

@ -1,6 +1,3 @@
/* eslint-disable no-console */
// eslint-disable-next-line no-unused-vars
module.exports = Self => { module.exports = Self => {
Self.remoteMethod('newSupplier', { Self.remoteMethod('newSupplier', {
description: 'returns the created item', description: 'returns the created item',
@ -26,8 +23,6 @@ module.exports = Self => {
params.payDemFk = 1; params.payDemFk = 1;
console.log(params);
if (!myOptions.transaction) { if (!myOptions.transaction) {
tx = await Self.beginTransaction({}); tx = await Self.beginTransaction({});
myOptions.transaction = tx; myOptions.transaction = tx;
@ -42,7 +37,6 @@ module.exports = Self => {
supplier supplier
}; };
} catch (e) { } catch (e) {
console.log(e);
if (tx) await tx.rollback(); if (tx) await tx.rollback();
return params; return params;
} }

View File

@ -1,4 +1,3 @@
/* eslint-disable no-console */
import ngModule from '../module'; import ngModule from '../module';
import Section from 'salix/components/section'; import Section from 'salix/components/section';
@ -10,9 +9,7 @@ class Controller extends Section {
onSubmit() { onSubmit() {
this.$.watcher.submit().then( this.$.watcher.submit().then(
json => { json => {
console.log('abc');
this.$state.go('item.card.basicData', {id: json.data.id}); this.$state.go('item.card.basicData', {id: json.data.id});
console.log('ctrl --> ', this.$.$ctrl);
redirect(this.$.$ctrl); redirect(this.$.$ctrl);