mirror of
https://github.com/fosrl/pangolin.git
synced 2026-07-06 12:19:50 +00:00
Comment back in the sync command
This commit is contained in:
@@ -49,22 +49,20 @@ 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})`
|
||||||
);
|
);
|
||||||
|
|
||||||
// TODO: IMPLEMENT THE SYNC ON THE NEWT SIDE AND COMMENT THIS BACK IN
|
const [site] = await db
|
||||||
|
.select()
|
||||||
|
.from(sites)
|
||||||
|
.where(eq(sites.siteId, newt.siteId))
|
||||||
|
.limit(1);
|
||||||
|
|
||||||
// const [site] = await db
|
if (!site) {
|
||||||
// .select()
|
logger.warn(
|
||||||
// .from(sites)
|
`Newt ping message: site with ID ${newt.siteId} not found`
|
||||||
// .where(eq(sites.siteId, newt.siteId))
|
);
|
||||||
// .limit(1);
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// if (!site) {
|
await sendNewtSyncMessage(newt, 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