misc bugfixes
This commit is contained in:
@@ -185,5 +185,15 @@ export default new class {
|
||||
};
|
||||
|
||||
};
|
||||
async getDefaultAvatar() {
|
||||
return (await db`
|
||||
select column_default as avatar
|
||||
from "information_schema"."columns"
|
||||
where
|
||||
TABLE_SCHEMA='public' and
|
||||
TABLE_NAME='user_options' and
|
||||
COLUMN_NAME = 'avatar'
|
||||
`)[0].avatar;
|
||||
}
|
||||
|
||||
};
|
||||
|
Reference in New Issue
Block a user