diff --git a/api/db.js b/api/db.js index 0187932..aa0493f 100644 --- a/api/db.js +++ b/api/db.js @@ -350,7 +350,7 @@ export async function search(term, pagination) { const values = ['%'+term.toUpperCase()+'%', start_id, pagination.items_per_page]; try { - const accounts = await pool.query('SELECT id, username, gm FROM accounts ' + + const accounts = await pool.query('SELECT id, username, gm, inactive FROM accounts ' + 'WHERE upper(username) LIKE $1 '+ ` ORDER BY username OFFSET $2 LIMIT $3`, values); const characters = await pool.query('SELECT id, name, account_id, faction_id FROM characters ' + diff --git a/app/App.svelte b/app/App.svelte index 3462444..32fb417 100644 --- a/app/App.svelte +++ b/app/App.svelte @@ -27,6 +27,9 @@ import UserList from './views/UserList.svelte'; import AdminPanel from './views/AdminPanel.svelte'; import CharacterList from './views/CharacterList.svelte'; +// Defined by webpack +let APP_VERSION = __VERSION__; + // prevent view pop-in let initialized = false; @@ -117,7 +120,9 @@ page("*", setRoute(BadRoute));