T
T
Triborg-3332021-07-27 16:58:12
Node.js
Triborg-333, 2021-07-27 16:58:12

What is the correct way to send a query to (database) and change the values?

61000fbb2cef1233723057.png
61000e61636b6306999473.png

Hello, please help me, am I doing the right thing in the database?

without it:

if(!this.spawnVirus){
     //Жду выполнение запроса (db.query)
       //возвращаю состояние (this.spawnVirus) на false;
      //запуск запроса один раз... 
      this.spawnVirus = true; 
}

Everything adds up quickly! the function itself (onLevel) works fine.
Am I doing the right condition for accrual (xp, max_xp, level, coins);

And with the condition, everything seems to be normal.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question