Fixed undefined user ID in postgres function. Fixed and improved mobile alignment for new and stash icons on scene tile.

This commit is contained in:
DebaucheryLibrarian
2021-03-20 00:12:12 +01:00
parent 3b3f4a1f2d
commit e301e2184c
3 changed files with 11 additions and 4 deletions

View File

@@ -14,7 +14,7 @@ const connectionString = `postgres://${config.database.query.user}:${config.data
async function pgSettings(req) {
return {
'user.id': req.session.user?.id,
'user.id': req.session.user?.id || null, // undefined is passed as an empty string, avoid
};
}