Skip to content

Commit aa9f394

Browse files
committed
feat(label): add syncLabels controller method
Delegates to service.syncLabels() via waMonitor, following the same pattern as fetchLabels and handleLabel.
1 parent cd800f2 commit aa9f394

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/api/controllers/label.controller.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,8 @@ export class LabelController {
1212
public async handleLabel({ instanceName }: InstanceDto, data: HandleLabelDto) {
1313
return await this.waMonitor.waInstances[instanceName].handleLabel(data);
1414
}
15-
}
15+
16+
public async syncLabels({ instanceName }: InstanceDto) {
17+
return await this.waMonitor.waInstances[instanceName].syncLabels();
18+
}
19+
}

0 commit comments

Comments
 (0)