mirror of
https://github.com/seriousm4x/UpSnap.git
synced 2026-07-23 05:53:55 -04:00
fix save new ports
This commit is contained in:
@@ -41,9 +41,9 @@
|
||||
if (!port.id) {
|
||||
const result = await $pocketbase.collection('ports').create(port);
|
||||
device.ports = [...device.ports, result.id];
|
||||
return;
|
||||
} else {
|
||||
await $pocketbase.collection('ports').update(port.id, port);
|
||||
}
|
||||
await $pocketbase.collection('ports').update(port.id, port);
|
||||
}
|
||||
|
||||
// create or update device
|
||||
|
||||
Reference in New Issue
Block a user