delete all endpoint update

This commit is contained in:
Drew Ansbacher
2021-09-14 10:47:25 -06:00
committed by Aiden McClelland
parent 2a8224abcf
commit c525481d23
3 changed files with 5 additions and 5 deletions

View File

@@ -71,10 +71,10 @@ export module RR {
export type GetNotificationsReq = WithExpire<{ before?: number, after?: number, limit?: number }> // notification.list
export type GetNotificationsRes = WithRevision<ServerNotification<number>[]>
export type DeleteNotificationReq = { id: string } // notification.delete
export type DeleteNotificationReq = { id: number } // notification.delete
export type DeleteNotificationRes = null
export type DeleteAllNotificationsReq = { } // notification.delete.all
export type DeleteAllNotificationsReq = { before: number } // notification.delete.all
export type DeleteAllNotificationsRes = null
// wifi

View File

@@ -143,7 +143,7 @@ export class LiveApiService extends ApiService {
}
async deleteAllNotifications (params: RR.DeleteAllNotificationsReq): Promise <RR.DeleteAllNotificationsRes> {
return this.http.rpcRequest({ method: 'notification.delete.all', params })
return this.http.rpcRequest({ method: 'notification.delete-before', params })
}
// wifi