refactor(api/notify): format orderCreated method parameters for improved readability
This commit is contained in:
parent
53af172e34
commit
6a8804abb1
@ -18,9 +18,12 @@ const STATE_MAP = {
|
||||
unknown: 'Неизвестно',
|
||||
};
|
||||
export class NotifyService extends BaseService {
|
||||
async orderCreated(variables: {
|
||||
input: Omit<VariablesOf<typeof GQL.CreateOrderDocument>['input'], 'time_end'>;
|
||||
}, createdByMaster: boolean) {
|
||||
async orderCreated(
|
||||
variables: {
|
||||
input: Omit<VariablesOf<typeof GQL.CreateOrderDocument>['input'], 'time_end'>;
|
||||
},
|
||||
createdByMaster: boolean,
|
||||
) {
|
||||
const customersService = new CustomersService(this.customer);
|
||||
const slotsService = new SlotsService(this.customer);
|
||||
const servicesService = new ServicesService(this.customer);
|
||||
@ -29,7 +32,6 @@ export class NotifyService extends BaseService {
|
||||
const serviceId = String(variables.input.services?.[0] ?? '');
|
||||
const timeStart = String(variables.input.time_start ?? '');
|
||||
const clientId = String(variables.input.client ?? '');
|
||||
const state = String(variables.input.state ?? '');
|
||||
|
||||
let emoji = '🆕';
|
||||
let confirmText = '';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user