Skip to content

Commit

Permalink
Fix bug in publish-ci examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt-Ord committed May 21, 2023
1 parent c616309 commit 7a90018
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/publish-ci/cra4/src/mocks/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const handlers = [
rest.get('/posts/:id', (req, res, ctx) => {
const { id } = req.params as { id: string }
state = adapter.updateOne(state, {
id,
id: parseInt(id, 10),
changes: { fetched_at: new Date().toUTCString() },
})
return res(ctx.json(state.entities[id]), ctx.delay(400))
Expand Down
2 changes: 1 addition & 1 deletion examples/publish-ci/cra5/src/mocks/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const handlers = [
rest.get('/posts/:id', (req, res, ctx) => {
const { id } = req.params as { id: string }
state = adapter.updateOne(state, {
id,
id: parseInt(id, 10),
changes: { fetched_at: new Date().toUTCString() },
})
return res(ctx.json(state.entities[id]), ctx.delay(400))
Expand Down
2 changes: 1 addition & 1 deletion examples/publish-ci/next/src/mocks/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const handlers = [
rest.get('/posts/:id', (req, res, ctx) => {
const { id } = req.params as { id: string }
state = adapter.updateOne(state, {
id,
id: parseInt(id, 10),
changes: { fetched_at: new Date().toUTCString() },
})
return res(ctx.json(state.entities[id]), ctx.delay(400))
Expand Down
2 changes: 1 addition & 1 deletion examples/publish-ci/vite/src/mocks/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const handlers = [
rest.get('/posts/:id', (req, res, ctx) => {
const { id } = req.params as { id: string }
state = adapter.updateOne(state, {
id,
id: parseInt(id, 10),
changes: { fetched_at: new Date().toUTCString() },
})
return res(ctx.json(state.entities[id]), ctx.delay(400))
Expand Down

0 comments on commit 7a90018

Please sign in to comment.