-
Notifications
You must be signed in to change notification settings - Fork 5.5k
feat(label): add GET /label/syncLabels endpoint to force WhatsApp label re-sync #2421
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
aa9f394
fc521b8
6e9c77d
8fc778b
e7df2e2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -20,6 +20,16 @@ export class LabelRouter extends RouterBroker { | |||||||
|
|
||||||||
| return res.status(HttpStatus.OK).json(response); | ||||||||
| }) | ||||||||
| .get(this.routerPath('syncLabels'), ...guards, async (req, res) => { | ||||||||
| const response = await this.dataValidate<LabelDto>({ | ||||||||
| request: req, | ||||||||
| schema: null, | ||||||||
| ClassRef: LabelDto, | ||||||||
| execute: (instance) => labelController.syncLabels(instance), | ||||||||
| }); | ||||||||
|
|
||||||||
|
||||||||
| res.set('Cache-Control', 'no-store'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The first import line contains a UTF-8 BOM/zero-width character (shown as an invisible character before
import). This can cause noisy diffs and occasional tooling/lint issues. Please remove the BOM so the file starts with a plainimport ....