✏️ fix pi-hole integration field from password to apiKey

This commit is contained in:
Danyal
2023-07-11 23:28:56 +05:00
parent d088637c56
commit fdafbb9aaa
5 changed files with 8 additions and 8 deletions

View File

@@ -32,7 +32,7 @@ export const Get = async (request: NextApiRequest, response: NextApiResponse) =>
try {
switch (app.integration?.type) {
case 'pihole': {
const piHole = new PiHoleClient(app.url, findAppProperty(app, 'password'));
const piHole = new PiHoleClient(app.url, findAppProperty(app, 'apiKey'));
const summary = await piHole.getSummary();
data.domainsBeingBlocked += summary.domains_being_blocked;