Compare commits
No commits in common. "7c7b38e8699c6ae9e9a5e5d23322f08b5cb3be3f" and "a0be8f0aa306b190b794a48a94d62ef79a7ce914" have entirely different histories.
7c7b38e869
...
a0be8f0aa3
|
|
@ -2,13 +2,13 @@ module.exports = {
|
|||
database: {
|
||||
owner: {
|
||||
host: '127.0.0.1',
|
||||
user: 'traxxx',
|
||||
user: 'user',
|
||||
password: 'password',
|
||||
database: 'traxxx',
|
||||
},
|
||||
query: {
|
||||
host: '127.0.0.1',
|
||||
user: 'visitor',
|
||||
user: 'user',
|
||||
password: 'password',
|
||||
database: 'traxxx',
|
||||
},
|
||||
|
|
|
|||
|
|
@ -12,12 +12,6 @@ const { ActorPlugins, SitePlugins, ReleasePlugins } = require('./plugins/plugins
|
|||
|
||||
const connectionString = `postgres://${config.database.query.user}:${config.database.query.password}@${config.database.query.host}:5432/${config.database.query.database}`;
|
||||
|
||||
async function pgSettings(req) {
|
||||
return {
|
||||
'user.id': req.session.user?.id,
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = postgraphile(
|
||||
connectionString,
|
||||
'public',
|
||||
|
|
@ -43,5 +37,4 @@ module.exports = postgraphile(
|
|||
...ReleasePlugins,
|
||||
],
|
||||
},
|
||||
pgSettings,
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue