Remove unused imports
This commit is contained in:
parent
1ab330de60
commit
c306c4f7a1
|
@ -4,7 +4,7 @@ import { ResetToken } from '../../classes/ResetToken'
|
||||||
|
|
||||||
import { updateDevicesInfo } from '../../lib/wifiDevices'
|
import { updateDevicesInfo } from '../../lib/wifiDevices'
|
||||||
import { updateUserIdMappings, addHost } from '../../lib/paloalto'
|
import { updateUserIdMappings, addHost } from '../../lib/paloalto'
|
||||||
import { logInfo, logSuccess, logWarning } from '../../lib/logger'
|
import { logInfo, logSuccess } from '../../lib/logger'
|
||||||
|
|
||||||
const Mutation = {
|
const Mutation = {
|
||||||
async login(_, { data }) {
|
async login(_, { data }) {
|
||||||
|
@ -52,11 +52,6 @@ const Mutation = {
|
||||||
{ data: { cidr, user, password, description, note } },
|
{ data: { cidr, user, password, description, note } },
|
||||||
{ auth }
|
{ auth }
|
||||||
) {
|
) {
|
||||||
logWarning({
|
|
||||||
message: `User ${auth.sAMAccountName}(${auth.displayName}) está tentando adicionar um novo host Palo Alto.`,
|
|
||||||
tags: ['paloalto']
|
|
||||||
})
|
|
||||||
|
|
||||||
const host = await addHost({ cidr, user, password, description, note })
|
const host = await addHost({ cidr, user, password, description, note })
|
||||||
|
|
||||||
if (host)
|
if (host)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user