Skip to content

Commit

Permalink
fix some bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
maximilianMairinger committed Jan 15, 2024
1 parent e4aff3d commit 0652a52
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ setup("lbAnmeldung").then(async ({app, db}) => {
let lastTxt = await checkWithPup()
if (file.length.get() === 0) addLineToFile(lastTxt)
if (!process.env.DEV) sendMsgToClients("Started and operational")
if (file[file.length.get()-1].change !== lastTxt) {
if (file[file.length.get()-1].change.get() !== lastTxt) {
sendMsgToClients("Change detected")
addLineToFile(lastTxt)
}
Expand Down Expand Up @@ -192,6 +192,8 @@ async function checkWithPup() {
await Promise.all(promises);
}

await delay(50)
await page.waitForSelector("#app > div.ui.container > div.ui.styled.fluid.accordion h5.ui.top.attached.header")
await delay(3000)

const str = await page.evaluate(() => {
Expand Down

0 comments on commit 0652a52

Please sign in to comment.