bugfix
This commit is contained in:
parent
c5f2a6c5d3
commit
aaca4e161d
|
@ -1,7 +1,8 @@
|
|||
import sql from "./sql.js";
|
||||
|
||||
export let admins = [];
|
||||
export const loadAdmins = (() => {
|
||||
export const loadAdmins = () => {
|
||||
admins = [];
|
||||
sql.exec("select * from `admins`")
|
||||
.then(rows => {
|
||||
rows.forEach(row => {
|
||||
|
@ -17,7 +18,8 @@ export const loadAdmins = (() => {
|
|||
.catch(err => {
|
||||
console.log("keine Admins vorhanden");
|
||||
});
|
||||
})();
|
||||
};
|
||||
loadAdmins();
|
||||
|
||||
export const getLevel = (network, user) => {
|
||||
let ret = {
|
||||
|
|
Loading…
Reference in New Issue
Block a user