misc bugfixes

This commit is contained in:
2022-05-18 03:43:17 +00:00
parent f57a8b4320
commit 97ef147160
5 changed files with 27 additions and 17 deletions

View File

@@ -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;
}
};