Skip to content

Commit

Permalink
fix: ajusta retorno do metodo setUnread
Browse files Browse the repository at this point in the history
  • Loading branch information
fabio committed Feb 12, 2021
1 parent 55d1f2d commit b63d719
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/notificacoes/notificacoes.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,10 @@ export class NotificacoesService {
}

async setRead(notificationId: string): Promise<Response> {
return this.api.request('PUT', `api/messages/${notificationId}/read`, true);
return this.api.request('PUT', `api/messages/${notificationId}/read`);
}

async setUnread(notificationId: string): Promise<any> {
return this.api.request('PUT', `api/messages/${notificationId}/unread`)
.then(res => res.json());
return this.api.request('PUT', `api/messages/${notificationId}/unread`);
}
}

0 comments on commit b63d719

Please sign in to comment.