Ruslan
776704f050
Fix session error
...
Fix "Cannot destructure property 'session_id' of 'session' as it is null" error
Sometimes with a large number of requests, an error occurs when searching for a session.
1. Session not found. "session === null"
2. Next, we try to create it, but we get into "catch", i.e. our "session" variable is "null". If we get the error "Unique constraint failed on the fields: (`session_uuid`)", then the session was created in another request and we need to get it.
2022-08-23 12:13:20 +02:00
Brian Cao
f189035a73
fix CH return.
2022-07-25 09:47:11 -07:00
Kevin Van Ryckegem
5ef979d61d
#1340 : Fix when session received is not an array, but the direct object
2022-07-25 00:44:53 +02:00
Brian Cao
aa8057f9fe
fix stats query
2022-07-22 17:47:26 -07:00
Brian Cao
65910c7348
clickhouse inserts
2022-07-22 14:43:19 -07:00
Brian Cao
8aec6d7406
move queries
2022-07-12 14:14:36 -07:00
Mike Cao
3fab09d626
Check for no session. Closes #1075
2022-04-08 17:17:07 -07:00
Mike Cao
7cf0927741
Enabling caching in tracker script.
2022-03-18 22:26:23 -07:00
Mike Cao
128f15092e
Update session hash calculation.
2022-03-14 11:14:05 -07:00
Mike Cao
17790aa5a8
Fix issue with sendBeacon request.
2022-03-10 19:01:33 -08:00
Mike Cao
56cf55e053
Handle unique session errors.
2022-01-06 01:21:05 -08:00
Mike Cao
3d1dc08491
Implement session caching.
2020-10-02 20:33:46 -07:00
Mike Cao
96bd7e5b47
Use token authentication for API requests.
2020-09-17 22:52:20 -07:00
Mike Cao
5cade59111
Removed session code.
2020-08-20 19:17:27 -07:00
Mike Cao
d4ca02f110
Use portal for modals. Prisma disconnect after query.
2020-08-18 23:35:26 -07:00
Mike Cao
f4ca353b5c
Refactor database queries.
2020-08-11 22:24:41 -07:00
Mike Cao
a248f35db2
Add support for MySQL.
2020-08-11 20:05:40 -07:00
Mike Cao
b5cf9f8719
Account settings page.
2020-08-08 23:48:43 -07:00
Mike Cao
c4b75e4aec
Handle website delete. Added response helper functions.
2020-08-07 17:19:42 -07:00
Mike Cao
e17c9da3d5
Added device collection.
2020-08-06 19:14:44 -07:00
Mike Cao
5d4ff5cfa4
Implement redux.
2020-08-04 22:45:05 -07:00
Mike Cao
a2db27894f
Refactor components and styles.
2020-08-03 18:12:28 -07:00
Mike Cao
d81ee3932d
Auth and session middleware.
2020-07-27 23:52:14 -07:00
Mike Cao
49a55b40b4
Accounts and login.
2020-07-23 19:56:55 -07:00
Mike Cao
f3f0ad15f2
Changed JWT implementation.
2020-07-22 21:33:17 -07:00
Mike Cao
cb0c912c5b
Switch to json web tokens.
2020-07-22 20:45:09 -07:00
Mike Cao
5219582803
Cookie authentication.
2020-07-22 15:46:05 -07:00
Mike Cao
0edf87941a
Minor tweaks.
2020-07-20 19:24:33 -07:00
Mike Cao
132bbcbe0d
Refactored session and collect process.
2020-07-20 01:54:21 -07:00