structure
This commit is contained in:
@@ -12,7 +12,7 @@ import { Logger, UseGuards, Inject, forwardRef } from '@nestjs/common';
|
||||
import { Pager } from './entities/pager.entity';
|
||||
import { WsAdminAuthGuard, type AuthenticatedSocket } from './guards/ws-admin-auth.guard';
|
||||
import { WsRestId } from './decorators/ws-rest-id.decorator';
|
||||
import { PagerService } from './pager.service';
|
||||
import { PagerService } from './providers/pager.service';
|
||||
import { WsAdminId } from './decorators/ws-admin-id.decorator';
|
||||
import { PagerStatus } from './interface/pager';
|
||||
|
||||
@@ -96,8 +96,8 @@ export class PagerGateway implements OnGatewayConnection, OnGatewayDisconnect {
|
||||
async handleGetPagers(@ConnectedSocket() client: AuthenticatedSocket, @WsRestId() restId: string) {
|
||||
try {
|
||||
const pagers = await this.pagerService.findAllByRestaurantId(restId);
|
||||
|
||||
const pagersData = pagers.map((pager) => ({
|
||||
|
||||
const pagersData = pagers.map(pager => ({
|
||||
id: pager.id,
|
||||
tableNumber: pager.tableNumber,
|
||||
message: pager.message,
|
||||
|
||||
Reference in New Issue
Block a user