build: Use prettier for typescript
Stop ignoring .ts files in prettier and fix existing issues.
This commit is contained in:
@@ -12,11 +12,10 @@ import { Observable, of } from 'rxjs';
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class NotificationsService {
|
||||
|
||||
/**
|
||||
* @param {HttpClient} http Http Client to send requests.
|
||||
*/
|
||||
constructor(private http: HttpClient) { }
|
||||
constructor(private http: HttpClient) {}
|
||||
|
||||
/**
|
||||
* @returns {Observable<any>} Notifications.
|
||||
@@ -30,7 +29,7 @@ export class NotificationsService {
|
||||
* @returns {Observable<any>} Notifications.
|
||||
*/
|
||||
updateNotifications(): Observable<any> {
|
||||
return this.http.put('/notifications', { });
|
||||
return this.http.put('/notifications', {});
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -39,20 +38,20 @@ export class NotificationsService {
|
||||
getMockUnreadNotification(): Observable<any> {
|
||||
const date = new Date();
|
||||
return of({
|
||||
'totalFilteredRecords': 1,
|
||||
'pageItems': [
|
||||
{ 'id': Math.floor(Math.random() * 100),
|
||||
'objectType': 'client',
|
||||
'objectId': Math.floor(Math.random() * 10),
|
||||
'action': 'clientCreated',
|
||||
'actorId': 2,
|
||||
'content': 'Client Created',
|
||||
'isRead': false,
|
||||
'isSystemGenerated': false,
|
||||
'createdAt': `${date.toLocaleDateString()} ${date.getHours()}:${date.getMinutes()}:${date.getSeconds()}`
|
||||
totalFilteredRecords: 1,
|
||||
pageItems: [
|
||||
{
|
||||
id: Math.floor(Math.random() * 100),
|
||||
objectType: 'client',
|
||||
objectId: Math.floor(Math.random() * 10),
|
||||
action: 'clientCreated',
|
||||
actorId: 2,
|
||||
content: 'Client Created',
|
||||
isRead: false,
|
||||
isSystemGenerated: false,
|
||||
createdAt: `${date.toLocaleDateString()} ${date.getHours()}:${date.getMinutes()}:${date.getSeconds()}`
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user