mirror of
https://github.com/fosrl/pangolin.git
synced 2026-01-28 22:00:51 +00:00
Fix linting errors
This commit is contained in:
@@ -493,7 +493,7 @@ const sendToClientLocal = async (
|
||||
}
|
||||
|
||||
// Handle config version
|
||||
let configVersion = await getClientConfigVersion(clientId);
|
||||
const configVersion = await getClientConfigVersion(clientId);
|
||||
|
||||
// Add config version to message
|
||||
const messageWithVersion = {
|
||||
|
||||
@@ -178,7 +178,7 @@ export const handleOlmPingMessage: MessageHandler = async (context) => {
|
||||
logger.debug(`handleOlmPingMessage: Got config version: ${configVersion} (type: ${typeof configVersion})`);
|
||||
|
||||
if (configVersion == null || configVersion === undefined) {
|
||||
logger.debug(`handleOlmPingMessage: could not get config version from server for olmId: ${olm.olmId}`)
|
||||
logger.debug(`handleOlmPingMessage: could not get config version from server for olmId: ${olm.olmId}`);
|
||||
}
|
||||
|
||||
if (message.configVersion != null && configVersion != null && configVersion != message.configVersion) {
|
||||
|
||||
@@ -66,7 +66,7 @@ export async function sendOlmSyncMessage(olm: Olm, client: Client) {
|
||||
});
|
||||
}
|
||||
|
||||
logger.debug("sendOlmSyncMessage: sending sync message")
|
||||
logger.debug("sendOlmSyncMessage: sending sync message");
|
||||
|
||||
await sendToClient(olm.olmId, {
|
||||
type: "olm/sync",
|
||||
|
||||
@@ -305,7 +305,7 @@ export default async function migration() {
|
||||
const subnets = site.remoteSubnets.split(",");
|
||||
for (const subnet of subnets) {
|
||||
// Generate a unique niceId for each new site resource
|
||||
let niceId = generateName();
|
||||
const niceId = generateName();
|
||||
insertCidrResource.run(
|
||||
site.siteId,
|
||||
subnet.trim(),
|
||||
|
||||
Reference in New Issue
Block a user