Skip to content

Commit e83f1f5

Browse files
committed
Fix error spelling
1 parent eecb1b5 commit e83f1f5

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

lib/database/database.js

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class DBuser {
5353
return true;
5454
}
5555
} catch (ex) {
56-
console.log(`Something wrong happend ${ex}`);
56+
console.log(`Something wrong happened ${ex}`);
5757
} finally {
5858
await client.query("ROLLBACK");
5959
client.release();
@@ -102,7 +102,7 @@ class DBuser {
102102
await client.query("COMMIT");
103103
}
104104
} catch (ex) {
105-
console.log(`Something wrong happend ${ex}`);
105+
console.log(`Something wrong happened ${ex}`);
106106
} finally {
107107
await client.query("ROLLBACK");
108108
client.release();
@@ -126,7 +126,7 @@ class DBuser {
126126
await client.query(query);
127127
await client.query("COMMIT");
128128
} catch (ex) {
129-
console.log(`Something wrong happende:${ex}`);
129+
console.log(`Something wrong happenede:${ex}`);
130130
} finally {
131131
await client.query("ROLLBACK");
132132
client.release();
@@ -152,7 +152,7 @@ class DBuser {
152152
await client.query("COMMIT");
153153
}
154154
} catch (ex) {
155-
console.log(`Something wrong happend ${ex}`);
155+
console.log(`Something wrong happened ${ex}`);
156156
} finally {
157157
await client.query("ROLLBACK");
158158
client.release();
@@ -178,7 +178,7 @@ class DBuser {
178178
await client.query("COMMIT");
179179
}
180180
} catch (ex) {
181-
console.log(`Something wrong happend ${ex}`);
181+
console.log(`Something wrong happened ${ex}`);
182182
} finally {
183183
await client.query("ROLLBACK");
184184
client.release();
@@ -201,7 +201,7 @@ class DBuser {
201201

202202
await client.query("COMMIT");
203203
} catch (ex) {
204-
console.log(`Something wrong happend ${ex}`);
204+
console.log(`Something wrong happened ${ex}`);
205205
} finally {
206206
await client.query("ROLLBACK");
207207
client.release();
@@ -235,7 +235,7 @@ class DBuser {
235235
}
236236
await client.query("COMMIT");
237237
} catch (ex) {
238-
console.log(`Something wrong happend ${ex}`);
238+
console.log(`Something wrong happened ${ex}`);
239239
} finally {
240240
await client.query("ROLLBACK");
241241
client.release();
@@ -259,7 +259,7 @@ class DBuser {
259259

260260
await client.query("COMMIT");
261261
} catch (ex) {
262-
console.log(`Something wrong happend when trying to add user role to table ${ex}`);
262+
console.log(`Something wrong happened when trying to add user role to table ${ex}`);
263263
} finally {
264264
await client.query("ROLLBACK");
265265
client.release();
@@ -277,7 +277,7 @@ class DBuser {
277277
await client.query(query, values);
278278
await client.query("COMMIT");
279279
} catch (ex) {
280-
console.log(`Something wrong happend ${ex}`);
280+
console.log(`Something wrong happened ${ex}`);
281281
} finally {
282282
await client.query("ROLLBACK");
283283
client.release();
@@ -297,7 +297,7 @@ class DBuser {
297297
await client.query("COMMIT");
298298
return result.rows[0]["count"];
299299
} catch (ex) {
300-
console.log(`Something wrong happend ${ex}`);
300+
console.log(`Something wrong happened ${ex}`);
301301
} finally {
302302
await client.query("ROLLBACK");
303303
client.release();
@@ -319,7 +319,7 @@ class DBuser {
319319

320320
return result.rows[0]["count"];
321321
} catch (ex) {
322-
console.log(`Something wrong happend ${ex}`);
322+
console.log(`Something wrong happened ${ex}`);
323323
} finally {
324324
await client.query("ROLLBACK");
325325
client.release();
@@ -342,7 +342,7 @@ class DBuser {
342342
result = await client.query(query, values);
343343
await client.query("COMMIT");
344344
} catch (ex) {
345-
console.log(`Something wrong happend ${ex}`);
345+
console.log(`Something wrong happened ${ex}`);
346346
} finally {
347347
await client.query("ROLLBACK");
348348
client.release();
@@ -363,7 +363,7 @@ class DBuser {
363363
// console.log(result.rows);
364364
await client.query("COMMIT");
365365
} catch (ex) {
366-
console.log(`Something wrong happend ${ex}`);
366+
console.log(`Something wrong happened ${ex}`);
367367
} finally {
368368
await client.query("ROLLBACK");
369369
client.release();
@@ -387,7 +387,7 @@ class DBuser {
387387

388388
await client.query("COMMIT");
389389
} catch (ex) {
390-
console.log(`Something wrong happend ${ex}`);
390+
console.log(`Something wrong happened ${ex}`);
391391
} finally {
392392
await client.query("ROLLBACK");
393393
client.release();
@@ -407,7 +407,7 @@ class DBuser {
407407

408408
await client.query("COMMIT");
409409
} catch (ex) {
410-
console.log(`Something wrong happend ${ex}`);
410+
console.log(`Something wrong happened ${ex}`);
411411
} finally {
412412
await client.query("ROLLBACK");
413413
client.release();
@@ -426,7 +426,7 @@ class DBuser {
426426
await client.query("COMMIT");
427427
return result.rows[0]["count"];
428428
} catch (ex) {
429-
console.log(`Something wrong happend ${ex}`);
429+
console.log(`Something wrong happened ${ex}`);
430430
} finally {
431431
await client.query("ROLLBACK");
432432
client.release();
@@ -446,7 +446,7 @@ class DBuser {
446446
await client.query("COMMIT");
447447
return result.rows[0]["count"];
448448
} catch (ex) {
449-
console.log(`Something wrong happend ${ex}`);
449+
console.log(`Something wrong happened ${ex}`);
450450
} finally {
451451
await client.query("ROLLBACK");
452452
client.release();

0 commit comments

Comments
 (0)