a tool for shared writing and social publishing
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

handle cursor being NaN

+1 -1
+1 -1
appview/index.ts
··· 60 60 let startCursor; 61 61 try { 62 62 let file = (await readFile(cursorFile)).toString(); 63 - console.log(file); 64 63 startCursor = parseInt(file); 64 + if (Number.isNaN(startCursor)) startCursor = undefined; 65 65 } catch (e) {} 66 66 67 67 const client = await pool.connect();