dev to master #3

Merged
alexm merged 8 commits from dev into master 2023-02-23 13:20:37 +00:00
1 changed files with 4 additions and 0 deletions
Showing only changes of commit 345bc47df1 - Show all commits

View File

@ -1,10 +1,14 @@
import con from '../db/connect.js';
let lastCounter;
export default async(size, arcId) => {
if (lastCounter == size) return;
console.logger.info(`COUNTER: SIZE:${size} ARC_ID:${arcId}`);
await con.query(`
UPDATE vn.arcRead
SET counter = ?
WHERE id = ?;
`, [size, arcId]);
lastCounter = size;
};