Skip to content

Commit 3f2152a

Browse files
committed
Release v2: requires TypeORM >= 0.3.0
1 parent 0cae0c2 commit 3f2152a

File tree

4 files changed

+376
-208
lines changed

4 files changed

+376
-208
lines changed

README.md

+5-8
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,9 @@ A TypeORM-based session store.
66

77
Configure TypeORM with back end of your choice:
88

9-
### Yarn
10-
```bash
11-
yarn add connect-typeorm express-session typeorm sqlite3
12-
yarn add -D @types/express-session
13-
```
14-
159
### NPM
1610
```bash
17-
npm install connect-typeorm express-session typeorm sqlite3
11+
npm install @freshgiammi/connect-typeorm express-session typeorm sqlite3
1812
npm install -D @types/express-session
1913
```
2014

@@ -24,7 +18,7 @@ npm install -D @types/express-session
2418
// src/domain/Session/Session.ts
2519

2620
import { ISession } from "connect-typeorm";
27-
import { Column, Entity, Index, PrimaryColumn } from "typeorm";
21+
import { Column, DeleteDateColumn, Entity, Index, PrimaryColumn } from "typeorm";
2822

2923
@Entity()
3024
export class Session implements ISession {
@@ -37,6 +31,9 @@ export class Session implements ISession {
3731

3832
@Column("text")
3933
public json = "";
34+
35+
@DeleteDateColumn()
36+
public destroyedAt?: Date;
4037
}
4138
```
4239

0 commit comments

Comments
 (0)