Skip to content

Commit 6866f02

Browse files
committed
Draft
1 parent 7f93de7 commit 6866f02

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

.github/workflows/nodejs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
node-version: [16.x, 20.x]
1717

1818
steps:
19-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@v4
2020
- name: Use Node.js ${{ matrix.node-version }}
2121
uses: actions/setup-node@v3
2222
with:

.github/workflows/npm-publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
build:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515
- uses: actions/setup-node@v3
1616
with:
1717
node-version: 18
@@ -22,7 +22,7 @@ jobs:
2222
needs: build
2323
runs-on: ubuntu-latest
2424
steps:
25-
- uses: actions/checkout@v3
25+
- uses: actions/checkout@v4
2626
- uses: actions/setup-node@v3
2727
with:
2828
node-version: 18
@@ -39,7 +39,7 @@ jobs:
3939
# contents: read
4040
# packages: write
4141
# steps:
42-
# - uses: actions/checkout@v3
42+
# - uses: actions/checkout@v4
4343
# - uses: actions/setup-node@v3
4444
# with:
4545
# node-version: 18

postgresql.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<span data-i18n="postgresql.label.port"></span>
2525
</label>
2626
<input type="text" id="node-config-input-port" data-i18n="[placeholder]postgresql.placeholder.port" style="width: 80%;" />
27-
<input type="hidden" id="node-config-input-portFieldType" />
27+
<input type="hidden" id="node-config-input-portFieldType" value="num" />
2828
</div>
2929
<div class="form-row">
3030
<label for="node-config-input-database">
@@ -75,23 +75,23 @@
7575
<span data-i18n="postgresql.label.max"></span>
7676
</label>
7777
<input type="text" id="node-config-input-max" data-i18n="[placeholder]postgresql.placeholder.max" style="width: 60%;" />
78-
<input type="hidden" id="node-config-input-maxFieldType" />
78+
<input type="hidden" id="node-config-input-maxFieldType" value="num" />
7979
</div>
8080
<div class="form-row">
8181
<label for="node-config-input-idle" style="width: 150px;">
8282
<i class="fa fa-hourglass-half"></i>
8383
<span data-i18n="postgresql.label.idle"></span>
8484
</label>
8585
<input type="text" id="node-config-input-idle" data-i18n="[placeholder]postgresql.placeholder.idle" style="width: 60%;" />
86-
<input type="hidden" id="node-config-input-idleFieldType" />
86+
<input type="hidden" id="node-config-input-idleFieldType" value="num" />
8787
</div>
8888
<div class="form-row">
8989
<label for="node-config-input-connectionTimeout" style="width: 150px;">
9090
<i class="fa fa-hourglass-half"></i>
9191
<span data-i18n="postgresql.label.connectionTimeout" ></span>
9292
</label>
9393
<input type="text" id="node-config-input-connectionTimeout" data-i18n="[placeholder]postgresql.placeholder.connectionTimeout" style="width: 60%;" />
94-
<input type="hidden" id="node-config-input-connectionTimeoutFieldType" />
94+
<input type="hidden" id="node-config-input-connectionTimeoutFieldType" value="num" />
9595
</div>
9696
</div>
9797
</div>

postgresql.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@ module.exports = function (RED) {
8282
host: getField(node, n.hostFieldType, n.host),
8383
port: getField(node, n.portFieldType, n.port),
8484
database: getField(node, n.databaseFieldType, n.database),
85-
ssl: getField(node, n.sslFieldType, n.ssl),
85+
ssl: getField(node, n.sslFieldType, n.ssl) != 'false',
8686
application_name: getField(node, n.applicationNameType, n.applicationName),
8787
max: getField(node, n.maxFieldType, n.max),
88-
idleTimeoutMillis: getField(node, n.idleFieldType, n.idle),
89-
connectionTimeoutMillis: getField(node, n.connectionTimeoutFieldType, n.connectionTimeout),
88+
idleTimeoutMillis: +getField(node, n.idleFieldType, n.idle),
89+
connectionTimeoutMillis: +getField(node, n.connectionTimeoutFieldType, n.connectionTimeout),
9090
});
9191
this.pgPool.on('error', (err, _) => {
9292
node.error(err.message);

0 commit comments

Comments
 (0)