diff --git a/database.js b/database.js index ee221f7..3f13389 100644 --- a/database.js +++ b/database.js @@ -218,10 +218,11 @@ const cleanExpiredCodes = async () => { const updateLastConnection = async (steamId) => { const connection = getConnection(); - await connection.execute( + const [result] = await connection.execute( 'UPDATE user_links SET lastConnection = NOW() WHERE steam_id = ?', [steamId] ); + return { success: true, changes: result.affectedRows }; };