@jcbuisson/express-x 1.5.16 → 1.5.17
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 +1 -1
- package/src/server.mjs +0 -4
package/package.json
CHANGED
package/src/server.mjs
CHANGED
|
@@ -18,12 +18,9 @@ export function expressX(prisma, options = {}) {
|
|
|
18
18
|
const cnx2Socket = {}
|
|
19
19
|
|
|
20
20
|
async function createConnection(clientIP) {
|
|
21
|
-
const now = new Date();
|
|
22
|
-
const expirationTime = new Date(now.getTime() + 15 * 60000)
|
|
23
21
|
const connection = await app.service('Connection').create({
|
|
24
22
|
data: {
|
|
25
23
|
clientIP,
|
|
26
|
-
expirationTime,
|
|
27
24
|
}
|
|
28
25
|
})
|
|
29
26
|
return connection
|
|
@@ -40,7 +37,6 @@ export function expressX(prisma, options = {}) {
|
|
|
40
37
|
clientIP: connection.clientIP,
|
|
41
38
|
channelNames: connection.channelNames,
|
|
42
39
|
data: connection.data,
|
|
43
|
-
expirationTime: connection.expirationTime,
|
|
44
40
|
}
|
|
45
41
|
})
|
|
46
42
|
}
|