fixed eslint rules

This commit is contained in:
Joan Sanchez 2018-05-31 14:48:10 +02:00
parent 20897a287e
commit 4173180fde
8 changed files with 19 additions and 19 deletions

View File

@ -64,6 +64,7 @@ describe('Client', () => {
it('should define the classificationId property of the controller and then call the show method()', () => {
controller.$scope.closeContract = {show: () => {}};
spyOn(controller.$scope.closeContract, 'show');
expect(controller.classificationId).toBeFalsy();
controller.closeContract({id: 1});

View File

@ -39,8 +39,7 @@ class Controller {
this.$http.get(query).then(res => {
if (res.data)
this.ticket = res.data;
}
);
});
}
$onInit() {

View File

@ -31,7 +31,7 @@ module.exports = Self => {
}
});
Self.send = async (recipient, data, ctx) => {
Self.send = async(recipient, data, ctx) => {
let query = `SELECT vn.messageSendWithUser(?, ?, ?) AS sent`;
let [result] = await Self.rawSql(query, [ctx.req.accessToken.userId, recipient, data.message]);

View File

@ -25,7 +25,7 @@ module.exports = Self => {
}
});
Self.priceDifference = async (ticketFk, data) => {
Self.priceDifference = async(ticketFk, data) => {
let filter = {
where: {
ticketFk: ticketFk

View File

@ -33,7 +33,7 @@ module.exports = Self => {
}
});
Self.componentUpdate = async (ticketFk, data, ctx) => {
Self.componentUpdate = async(ticketFk, data, ctx) => {
let userId = ctx.req.accessToken.userId;
let hasDeliveryRole = await Self.app.models.Account.hasRole(userId, 'delivery');