Skip to content

Commit

Permalink
fix: createWatcher args
Browse files Browse the repository at this point in the history
  • Loading branch information
serezhaolshan committed Jul 9, 2024
1 parent 132128e commit d025797
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/watcher/watcher.network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ export class WatcherNetwork {

async createWatcher(req: Request, res: Response): Promise<void> {
try {
const { pushToken, deviceId } = req.body;
await this.service.createWatcher(pushToken, deviceId);
const { push_token, device_id } = req.body;
await this.service.createWatcher(push_token, device_id);
res.json({ message: "Watcher created" });
} catch (error) {
this.handleErrorResponse(res, error);
Expand Down

0 comments on commit d025797

Please sign in to comment.