u
This commit is contained in:
@@ -140,7 +140,7 @@ export function getCompanyPrinter(companyId, identifier) {
|
||||
|
||||
/**
|
||||
* Broadcasts the current live printer list for a company to all connected subscribers via SSE.
|
||||
* Emits both `printer` (with data `{ printers }`) and `printerstate`.
|
||||
* Emits `agentprinter` with data `{ printers }`.
|
||||
*
|
||||
* @param {number} companyId
|
||||
* @param {LivePrinter[]} [printers]
|
||||
@@ -152,8 +152,7 @@ export function broadcastCompanyPrinters(companyId, printers) {
|
||||
const list = printers ?? getCompanyPrinters(cId);
|
||||
const payload = { printers: list };
|
||||
|
||||
emit('printer', { companyId: cId, data: payload });
|
||||
emit('printerstate', { companyId: cId, data: payload });
|
||||
emit('agentprinter', { companyId: cId, data: payload });
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user