Hello, when i custom the join/leave message i have this error :
(node:28855) Warning: Label 'syncDB' already exists for console.time()
1|dev-run | This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
1|dev-run | Error: Duplicate entry '0' for key 'PRIMARY'
1|dev-run | at PromisePool.query (/home/invite/node_modules/mysql2/promise.js:330:22)
1|dev-run | at DatabaseService.insertOrUpdate (/home/invite/bin/framework/services/DatabaseService.js:153:37)
1|dev-run | at DatabaseService.saveLogs (/home/invite/bin/framework/services/DatabaseService.js:534:20)
1|dev-run | at DatabaseService.syncDB (/home/invite/bin/framework/services/DatabaseService.js:757:32)
1|dev-run | at Timeout._onTimeout (/home/invite/bin/framework/services/DatabaseService.js:66:32)
1|dev-run | at listOnTimeout (internal/timers.js:554:17)
1|dev-run | at processTimers (internal/timers.js:497:7)
1|dev-run | Unhandled Rejection at: Promise Promise {
1|dev-run | Error: Duplicate entry '0' for key 'PRIMARY'
1|dev-run | at PromisePool.query (/home/invite/node_modules/mysql2/promise.js:330:22)
1|dev-run | at DatabaseService.insertOrUpdate (/home/invite/bin/framework/services/DatabaseService.js:153:37)
1|dev-run | at DatabaseService.saveLogs (/home/invite/bin/framework/services/DatabaseService.js:534:20)
1|dev-run | at DatabaseService.syncDB (/home/invite/bin/framework/services/DatabaseService.js:757:32)
1|dev-run | at Timeout._onTimeout (/home/invite/bin/framework/services/DatabaseService.js:66:32)
1|dev-run | at listOnTimeout (internal/timers.js:554:17)
1|dev-run | at processTimers (internal/timers.js:497:7) {
1|dev-run | code: 'ER_DUP_ENTRY',
1|dev-run | errno: 1062,
1|dev-run | sqlState: '23000',
1|dev-run | sqlMessage: "Duplicate entry '0' for key 'PRIMARY'"
1|dev-run | }
Hello, when i custom the join/leave message i have this error :
(node:28855) Warning: Label 'syncDB' already exists for console.time() 1|dev-run | This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason: 1|dev-run | Error: Duplicate entry '0' for key 'PRIMARY' 1|dev-run | at PromisePool.query (/home/invite/node_modules/mysql2/promise.js:330:22) 1|dev-run | at DatabaseService.insertOrUpdate (/home/invite/bin/framework/services/DatabaseService.js:153:37) 1|dev-run | at DatabaseService.saveLogs (/home/invite/bin/framework/services/DatabaseService.js:534:20) 1|dev-run | at DatabaseService.syncDB (/home/invite/bin/framework/services/DatabaseService.js:757:32) 1|dev-run | at Timeout._onTimeout (/home/invite/bin/framework/services/DatabaseService.js:66:32) 1|dev-run | at listOnTimeout (internal/timers.js:554:17) 1|dev-run | at processTimers (internal/timers.js:497:7) 1|dev-run | Unhandled Rejection at: Promise Promise { 1|dev-run | Error: Duplicate entry '0' for key 'PRIMARY'
1|dev-run | at PromisePool.query (/home/invite/node_modules/mysql2/promise.js:330:22)
1|dev-run | at DatabaseService.insertOrUpdate (/home/invite/bin/framework/services/DatabaseService.js:153:37)
1|dev-run | at DatabaseService.saveLogs (/home/invite/bin/framework/services/DatabaseService.js:534:20)
1|dev-run | at DatabaseService.syncDB (/home/invite/bin/framework/services/DatabaseService.js:757:32)
1|dev-run | at Timeout._onTimeout (/home/invite/bin/framework/services/DatabaseService.js:66:32)
1|dev-run | at listOnTimeout (internal/timers.js:554:17)
1|dev-run | at processTimers (internal/timers.js:497:7) {
1|dev-run | code: 'ER_DUP_ENTRY',
1|dev-run | errno: 1062,
1|dev-run | sqlState: '23000',
1|dev-run | sqlMessage: "Duplicate entry '0' for key 'PRIMARY'"
1|dev-run | }