mirror of
https://github.com/fosrl/pangolin.git
synced 2026-06-26 09:09:05 +00:00
Comment out the sync
This commit is contained in:
@@ -49,20 +49,22 @@ export const handleNewtPingMessage: MessageHandler = async (context) => {
|
|||||||
`Newt ping with outdated config version: ${message.configVersion} (current: ${configVersion})`
|
`Newt ping with outdated config version: ${message.configVersion} (current: ${configVersion})`
|
||||||
);
|
);
|
||||||
|
|
||||||
const [site] = await db
|
// TODO: IMPLEMENT THE SYNC ON THE NEWT SIDE AND COMMENT THIS BACK IN
|
||||||
.select()
|
|
||||||
.from(sites)
|
|
||||||
.where(eq(sites.siteId, newt.siteId))
|
|
||||||
.limit(1);
|
|
||||||
|
|
||||||
if (!site) {
|
// const [site] = await db
|
||||||
logger.warn(
|
// .select()
|
||||||
`Newt ping message: site with ID ${newt.siteId} not found`
|
// .from(sites)
|
||||||
);
|
// .where(eq(sites.siteId, newt.siteId))
|
||||||
return;
|
// .limit(1);
|
||||||
}
|
|
||||||
|
|
||||||
await sendNewtSyncMessage(newt, site);
|
// if (!site) {
|
||||||
|
// logger.warn(
|
||||||
|
// `Newt ping message: site with ID ${newt.siteId} not found`
|
||||||
|
// );
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// await sendNewtSyncMessage(newt, site);
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user