Bugfix
This commit is contained in:
parent
2c0e6094b0
commit
f33d3847d7
|
@ -20,7 +20,7 @@ const WifiDevice = {
|
||||||
if (!parent.accessPointId && parent.apName) {
|
if (!parent.accessPointId && parent.apName) {
|
||||||
try {
|
try {
|
||||||
await prisma.wifiDevice.update({
|
await prisma.wifiDevice.update({
|
||||||
where: { id: parent.accessPointId }, data: {
|
where: { id: parent.id }, data: {
|
||||||
accessPoint: {
|
accessPoint: {
|
||||||
connect: {
|
connect: {
|
||||||
hostname: parent.apName
|
hostname: parent.apName
|
||||||
|
@ -31,7 +31,7 @@ const WifiDevice = {
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
logError({
|
logError({
|
||||||
tags: ['wifiDevice', 'accessPoint'],
|
tags: ['wifiDevice', 'accessPoint'],
|
||||||
message: `Failed to connect ${parent.mac} to access point ${parent.apName}`,
|
message: `Failed to connect ${parent} to access point ${parent.apName}`,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user