diff --git a/scripts/server/developer.js b/scripts/server/developer.js index fbb9eba8..85b5604d 100644 --- a/scripts/server/developer.js +++ b/scripts/server/developer.js @@ -445,4 +445,21 @@ function migrateSubAccountsToPerServerData() { } } +// =========================================================================== + +function resetAllAccountsHotkeysToDefault() { + let dbConnection = connectToDatabase(); + let dbQuery = false; + let dbAssoc = false; + if(dbConnection) { + dbQuery = queryDatabase(dbConnection, `SELECT acct_id FROM acct_main`); + if(dbQuery) { + while(dbAssoc = fetchQueryAssoc(dbQuery)) { + createDefaultKeybindsForAccount(dbAssoc["acct_id"]); + } + freeDatabaseQuery(dbQuery); + } + } +} + // =========================================================================== \ No newline at end of file