1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-28 14:16:41 +07:00

fixed message delete appearance

This commit is contained in:
Fedor Katurov 2020-09-08 13:27:00 +07:00
parent c2ebde069d
commit 3f3c1516c8
7 changed files with 69 additions and 8 deletions

View file

@ -25,12 +25,17 @@ export const apiMessagesDeleteMessage = ({
access,
username,
id,
is_locked,
}: {
access: string;
username: string;
id: number;
is_locked: boolean;
}): Promise<IResultWithStatus<{ message: IMessage }>> =>
api
.delete(API.USER.MESSAGE_DELETE(username, id), configWithToken(access))
.delete(
API.USER.MESSAGE_DELETE(username, id),
configWithToken(access, { params: { is_locked } })
)
.then(resultMiddleware)
.catch(errorMiddleware);