mirror of
https://github.com/fosrl/pangolin.git
synced 2026-09-22 02:28:26 +02:00
Update peers.ts
This commit is contained in:
@@ -31,7 +31,7 @@ export async function addPeer(
|
|||||||
.where(eq(newts.siteId, siteId))
|
.where(eq(newts.siteId, siteId))
|
||||||
.limit(1);
|
.limit(1);
|
||||||
if (!newt) {
|
if (!newt) {
|
||||||
throw new Error(`Site found for site ${siteId}`);
|
throw new Error(`Newt not found for site ${siteId}`);
|
||||||
}
|
}
|
||||||
newtId = newt.newtId;
|
newtId = newt.newtId;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user