Skip to content

Commit ac415fd

Browse files
authored
fix: Adjust ping requests. (#171)
* fix: Adjust ping requests. * fix: Use correct GitHub teams. * chore: Update ESDB docker image.
1 parent c91ac72 commit ac415fd

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @thenativeweb/internal_eventsourcingdb_rw
1+
* @thenativeweb/internal_dev

.github/dependabot.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ updates:
66
interval: weekly
77
open-pull-requests-limit: 10
88
assignees:
9-
- thenativeweb/internal_eventsourcingdb_dep
9+
- thenativeweb/internal_dev
1010
labels:
1111
- Dependencies
1212
versioning-strategy: increase
@@ -22,7 +22,7 @@ updates:
2222
interval: weekly
2323
open-pull-requests-limit: 10
2424
assignees:
25-
- thenativeweb/internal_eventsourcingdb_dep
25+
- thenativeweb/internal_dev
2626
labels:
2727
- Dependencies
2828
commit-message:
@@ -34,7 +34,7 @@ updates:
3434
interval: "weekly"
3535
open-pull-requests-limit: 10
3636
assignees:
37-
- thenativeweb/internal_eventsourcingdb_dep
37+
- thenativeweb/internal_dev
3838
labels:
3939
- Dependencies
4040
commit-message:

lib/handlers/ping/ping.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const ping = async (client: Client): Promise<void> => {
88
const response = await wrapError(
99
async () =>
1010
client.httpClient.get({
11-
path: '/ping',
11+
path: '/api/ping',
1212
responseType: 'text',
1313
withAuthorization: false,
1414
}),

test/integration/pingTests.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ suite('Client.ping()', function () {
5858
test('throws an error if the server responds with an unexpected status code.', async (): Promise<void> => {
5959
let client: Client;
6060
({ client, stopServer } = await startLocalHttpServer(app => {
61-
app.get('/ping', (_req, res) => {
61+
app.get('/api/ping', (_req, res) => {
6262
res.status(StatusCodes.BAD_GATEWAY);
6363
res.send('OK');
6464
});
@@ -81,7 +81,7 @@ suite('Client.ping()', function () {
8181
test("throws an error if the server's response body is not 'OK'.", async (): Promise<void> => {
8282
let client: Client;
8383
({ client, stopServer } = await startLocalHttpServer(app => {
84-
app.get('/ping', (_req, res) => {
84+
app.get('/api/ping', (_req, res) => {
8585
res.status(StatusCodes.OK);
8686
res.send('Gude');
8787
});
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
FROM ghcr.io/thenativeweb/eventsourcingdb:0.77.0
1+
FROM ghcr.io/thenativeweb/eventsourcingdb:0.79.0

0 commit comments

Comments
 (0)