Skip to content

Commit 14e2d26

Browse files
vitaly-tflovilmart
authored andcommitted
chore(PostgresStorageAdapter): nits (#3870)
refactoring method + removing a comment that's no longer needed.
1 parent 1f11ad5 commit 14e2d26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Adapters/Storage/Postgres/PostgresStorageAdapter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ export class PostgresStorageAdapter {
778778
const qs = `INSERT INTO $1:name (${columnsPattern}) VALUES (${valuesPattern})`
779779
const values = [className, ...columnsArray, ...valuesArray]
780780
debug(qs, values);
781-
return this._client.any(qs, values)
781+
return this._client.none(qs, values)
782782
.then(() => ({ ops: [object] }))
783783
.catch(error => {
784784
if (error.code === PostgresUniqueIndexViolationError) {
@@ -993,7 +993,7 @@ export class PostgresStorageAdapter {
993993

994994
const qs = `UPDATE $1:name SET ${updatePatterns.join(',')} WHERE ${where.pattern} RETURNING *`;
995995
debug('update: ', qs, values);
996-
return this._client.any(qs, values); // TODO: This is unsafe, verification is needed, or a different query method;
996+
return this._client.any(qs, values);
997997
}
998998

999999
// Hopefully, we can get rid of this. It's only used for config and hooks.

0 commit comments

Comments
 (0)