Socket
Socket
Sign inDemoInstall

telegraf-postgres-session

Package Overview
Dependencies
35
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.2 to 1.0.4

2

package.json
{
"name": "telegraf-postgres-session",
"version": "1.0.2",
"version": "1.0.4",
"description": "A middleware session for telegraf",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -10,3 +10,3 @@ # PostgreSQL session middleware for Telegraf

```SQL
CREATE TABLE postgress_sessions(id varchar, session varchar);
CREATE TABLE postgress_sessions(id varchar PRIMARY KEY, session varchar);
```

@@ -36,2 +36,2 @@

```
The database connection configuration is described in The [PostgreSQL API](https://node-postgres.com).
The database connection configuration is described in The [PostgreSQL API](https://node-postgres.com).

@@ -21,4 +21,3 @@ // NOTA(RECKER): Conectarse a la DB

chat_id = ctx.from.id;
}
else {
} else if (ctx.chat) {
chat_id = ctx.chat.id;

@@ -25,0 +24,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc