MCPcopy
hub / github.com/NginxProxyManager/nginx-proxy-manager / isSetup

Function isSetup

backend/setup.js:10–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8import userPermissionModel from "./models/user_permission.js";
9
10export const isSetup = async () => {
11 const row = await userModel.query().select("id").where("is_deleted", 0).first();
12 return row?.id > 0;
13}
14
15/**
16 * Creates a default admin users if one doesn't already exist in the database

Callers 3

main.jsFile · 0.90
users.jsFile · 0.90
setupDefaultUserFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected