Skip to content

Commit a5db8b3

Browse files
author
Felix Robles
committed
address comments
1 parent be8f4cc commit a5db8b3

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/datastore/drivers/pg/PGStore.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ export class PGStore implements Process, SQLStore {
3636
}
3737

3838
public async createTransaction(
39-
options?: {
40-
isolation_level?: PGIsolationLevel
41-
}
39+
isolationLevel?: PGIsolationLevel
4240
): Promise<PGTransaction> {
4341
if (this.connection === undefined) {
4442
throw new Error(
@@ -47,9 +45,11 @@ export class PGStore implements Process, SQLStore {
4745
}
4846

4947
let connection = await this.connection.connect()
48+
49+
// By default, use PostgreSQL default isolation level (READ COMMITTED)
5050
let query = "BEGIN"
51-
if (options !== undefined && options.isolation_level !== undefined) {
52-
switch (options.isolation_level) {
51+
if (isolationLevel !== undefined) {
52+
switch (isolationLevel) {
5353
case PGIsolationLevel.SERIALIZABLE:
5454
query = "BEGIN TRANSACTION ISOLATION LEVEL SERIALIZABLE"
5555
break

src/logging/abstract/LogLevel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* The standarized levels used across all Logger integrations
2+
* The standardize levels used across all Logger integrations
33
*/
44
export enum LogLevel {
55
/**

0 commit comments

Comments
 (0)