Remove unused code
This commit is contained in:
parent
f33d3847d7
commit
619f9661a0
|
@ -17,25 +17,6 @@ const WifiDevice = {
|
|||
|
||||
accessPoint: async parent => {
|
||||
|
||||
if (!parent.accessPointId && parent.apName) {
|
||||
try {
|
||||
await prisma.wifiDevice.update({
|
||||
where: { id: parent.id }, data: {
|
||||
accessPoint: {
|
||||
connect: {
|
||||
hostname: parent.apName
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
} catch (e) {
|
||||
logError({
|
||||
tags: ['wifiDevice', 'accessPoint'],
|
||||
message: `Failed to connect ${parent} to access point ${parent.apName}`,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
return prisma.accessPoint.findUnique({ where: { id: parent.accessPointId } })
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user