Skip to content

Commit

Permalink
fix: add name to main function
Browse files Browse the repository at this point in the history
  • Loading branch information
voxpelli committed Sep 13, 2024
1 parent 21e41c4 commit c98e2ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const escapePgIdentifier = (value) => value.replaceAll('"', '""');
* @param {ExpressSession} session
* @returns {ExpressSessionStore}
*/
module.exports = function (session) {
module.exports = function connectPgSimple (session) {
/** @type {ExpressSessionStore} */
const Store = session.Store ||
// @ts-ignore
Expand Down Expand Up @@ -133,6 +133,7 @@ module.exports = function (session) {
this.#pgPromise = options.pgPromise;
this.#ownsPg = false;
} else {
// eslint-disable-next-line n/no-process-env
const conString = options.conString || process.env['DATABASE_URL'];
let conObject = options.conObject;

Expand Down

0 comments on commit c98e2ec

Please sign in to comment.