@jcbuisson/express-x 1.5.28 → 1.5.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jcbuisson/express-x",
3
- "version": "1.5.28",
3
+ "version": "1.5.29",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "src/index.mjs",
@@ -41,7 +41,7 @@ export const isNotExpired = async (context) => {
41
41
  const expireAtISO = await getConnectionDataItem(context, 'expireAt')
42
42
  const expireAt = new Date(expireAtISO)
43
43
  const now = new Date()
44
- if (expireAt > now) {
44
+ if (now > expireAt) {
45
45
  // clear connection data
46
46
  await resetConnection(context)
47
47
  // throw exception