mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 21:06:42 +07:00
boris notificatins
This commit is contained in:
parent
bfa61d3987
commit
abcdcfa09f
6 changed files with 75 additions and 20 deletions
|
@ -1,6 +1,6 @@
|
|||
import { api, errorMiddleware, resultMiddleware, configWithToken } from '~/utils/api';
|
||||
import { API } from '~/constants/api';
|
||||
import { IResultWithStatus, IMessage } from '~/redux/types';
|
||||
import { IResultWithStatus, IMessage, INotification } from '~/redux/types';
|
||||
import { userLoginTransform } from '~/redux/auth/transforms';
|
||||
import { IUser } from './types';
|
||||
|
||||
|
@ -55,7 +55,9 @@ export const apiAuthGetUpdates = ({
|
|||
access,
|
||||
exclude_dialogs,
|
||||
last,
|
||||
}): Promise<IResultWithStatus<{ message: IMessage }>> =>
|
||||
}): Promise<
|
||||
IResultWithStatus<{ notifications: INotification[]; boris: { commented_at: string } }>
|
||||
> =>
|
||||
api
|
||||
.get(API.USER.GET_UPDATES, configWithToken(access, { params: { exclude_dialogs, last } }))
|
||||
.then(resultMiddleware)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue