Skip to content

Commit a45012d

Browse files
committed
small fix
1 parent 387b76d commit a45012d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/store/mainStore.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ const mainStore = {
445445
createARole: async ({ getters, dispatch }, payload) => {
446446

447447
const url = `${apiServerBaseUrl}/roles`;
448-
]
448+
449449
const resp = await RequestHandler(url,
450450
'POST',
451451
payload,
@@ -475,7 +475,6 @@ const mainStore = {
475475
throw new Error(resp?.message?.join(',') || resp?.message);
476476
} else if ('statusCode' in resp && resp.statusCode !== 200 && resp.statusCode !== 201) {
477477
throw new Error(resp.message)
478-
]
479478
}
480479

481480
dispatch('getMyRolesAction')
@@ -485,7 +484,7 @@ const mainStore = {
485484

486485
updateARole: async ({ getters, dispatch }, payload) => {
487486
const url = `${apiServerBaseUrl}/roles/${payload._id}`;
488-
]
487+
489488
const resp = await RequestHandler(url, 'PATCH', payload, UtilsMixin.methods.getHeader(getters.getAuthToken))
490489
if (!resp && Array.isArray(resp.message)) {
491490
throw new Error(resp?.message?.join(',') || resp?.message);

0 commit comments

Comments
 (0)