mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
appease sonar
This commit is contained in:
parent
7134eb2eb8
commit
46d7c3eb3c
@ -387,7 +387,7 @@
|
||||
|
||||
let servers = []
|
||||
for(i=0; i < server_ids.length; i++){
|
||||
arrchecked = $(`.${server_ids[i]}_perms`).map(function() {
|
||||
let arrchecked = $(`.${server_ids[i]}_perms`).map(function() {
|
||||
if(this.checked){
|
||||
return "1";
|
||||
}else{
|
||||
@ -410,12 +410,12 @@
|
||||
let formDataJsonString = JSON.stringify(formDataObject, replacer);
|
||||
|
||||
console.log(formDataJsonString);
|
||||
|
||||
let url = `/api/v2/roles/`
|
||||
let method = 'POST'
|
||||
if (roleId){
|
||||
url = `/api/v2/roles/${roleId}`
|
||||
method = 'PATCH'
|
||||
}else{
|
||||
url = `/api/v2/roles/`
|
||||
method = 'POST'
|
||||
}
|
||||
let res = await fetch(url, {
|
||||
method: method,
|
||||
|
Loading…
Reference in New Issue
Block a user