Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | 5x 5x 2x 2x 2x 1x 1x | 'use strict';
class SalonSaleReportService {
static get inject() {
return ['C2C/Repositories/SalonSaleReportRepo'];
}
constructor(salonSaleReportRepo) {
this.salonSaleReportRepo = salonSaleReportRepo;
}
async createOrUpdate(conditions, payload) {
const saleReport = await this.salonSaleReportRepo.createOrUpdate(conditions, payload);
await saleReport.reload();
return saleReport;
}
// load(ModelInstance, relations) {
// return this.salonSaleReportRepo.load(ModelInstance, relations);
// }
getListBy(conditions) {
return this.salonSaleReportRepo.getListBy(conditions);
}
}
module.exports = SalonSaleReportService;
|