prefix caching + working database functions!
This commit is contained in:
parent
6d9d453df3
commit
c69d2f562d
3 changed files with 49 additions and 48 deletions
|
@ -27,7 +27,7 @@ class Database {
|
|||
}
|
||||
|
||||
async getUser (id) {
|
||||
const res = await this.pool.query('SELECT * FROM guilds WHERE user_id = $1;', [id]);
|
||||
const res = await this.pool.query('SELECT * FROM users WHERE user_id = $1;', [id]);
|
||||
return res.rows[0];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue