Commit Graph
100 Commits
Author SHA1 Message Date
legonzaur 3a29c5cd88 run stuff in transaction : fix 2023-08-13 11:56:20 +00:00
legonzaur c5051e5387 wrap database insertion into transactions 2023-08-13 11:43:46 +02:00
legonzaur 5e854191d7 npm audit fix 2023-08-13 10:25:49 +02:00
legonzaur 055feb1264 fix user id being a string 2023-08-13 10:23:22 +02:00
legonzaur 192f8ce99e execute requests in sequence 2023-08-13 10:23:16 +02:00
legonzaur fe76b1c94a execute queries in transaction 2023-08-13 10:22:43 +02:00
legonzaur 03935492b1 small cleanup 2023-08-12 19:59:40 +02:00
legonzaur aa0f62579c add v3 documentation 2023-08-12 19:59:18 +02:00
legonzaur fdbd2d873d prevent uploading kills to a match that's closed 2023-08-12 13:55:47 +02:00
legonzaur 74a10f8aea code format 2023-08-12 13:52:04 +02:00
legonzaur 59c53a8417 kill insertion working 2023-08-12 13:51:18 +02:00
legonzaur 338a283a07 register match working 2023-08-09 23:32:36 +02:00
legonzaur fecbb80975 remove client and websocket 2023-08-09 15:51:37 +02:00
legonzaur 7470d8174f fix eslint errors 2023-08-09 15:49:53 +02:00
legonzaur 0aafd390a7 add submodule 2023-08-09 15:48:40 +02:00
legonzaur c5c61d17b4 change db directory to submodule 2023-08-09 15:48:14 +02:00
legonzaur cbd853fb56 add model 2023-06-22 18:15:56 +02:00
legonzaur 1fcf9627a6 fix small mistakes on migration 2023-06-22 18:15:52 +02:00
legonzaur 04a9c935e7 table creation for v3 2023-06-22 18:01:04 +02:00
legonzaur aa96ada505 eslint format 2023-06-22 17:39:19 +02:00
legonzaur a49fd1f5bb add migartion to change update_kill_view_fnct 2023-06-22 13:11:09 +02:00
legonzaur 0f5aecb69c revert migration changes because migration files shouldn't change 2023-06-22 13:10:13 +02:00
legonzaur 8509b30dd8 hotfix draft for empty names 2023-06-22 13:08:13 +02:00
legonzaur 876e77cf88 remove unnecessary console log 2023-05-31 20:08:22 +02:00
legonzaur 46d64932ae change query arg detection method for caching 2023-05-31 20:04:44 +02:00
legonzaur 0627f059fa fix username for default route 2023-05-31 19:46:05 +02:00
legonzaur d6f735044f Cache /player on backend for fastest response 2023-05-31 19:35:51 +02:00
legonzaur 179210a0df fix x-file-size-header 2023-05-30 20:45:35 +02:00
legonzaur 268035da9e fix X-File-Size header 2023-05-30 20:43:21 +02:00
legonzaur 886384b3bf Performance update 2023-05-30 19:31:04 +02:00
legonzaur 1b78aecb13 fix eslint setup errors 2023-05-30 11:07:27 +02:00
legonzaur fe4fad4016 fix cors expose headers 2023-05-26 14:27:55 +02:00
legonzaur d49e9232f5 fix cors for file size and encoding 2023-05-26 14:25:09 +02:00
legonzaur 7fbb068e42 fix content type 2023-05-26 14:16:32 +02:00
legonzaur a2a83f85bd fix xfilesize header 2023-05-26 14:12:06 +02:00
legonzaur f0f824235d add x-file-size header 2023-05-26 14:01:20 +02:00
legonzaur 126c24d5f3 Attemp to clusterize client 2023-05-26 11:39:02 +02:00
legonzaur 3ef92d3290 fix docs 2023-05-15 12:46:37 +02:00
legonzaur 0b6e7ac7e8 add match id to websocket 2023-05-15 09:58:13 +02:00
legonzaur 625c7730f3 remove keepalive console log 2023-05-05 15:35:49 +02:00
legonzaur a8512db65b fix ping when client is sending one to the server 2023-05-05 14:48:49 +02:00
legonzaur 7114ac9c64 fix ping 3 2023-05-05 14:47:35 +02:00
legonzaur 31dc5be41b fix ping 2 2023-05-05 14:46:29 +02:00
legonzaur b99b077185 fix ping 2023-05-05 14:34:32 +02:00
legonzaur f751453a34 add ping on ws connect 2023-05-05 14:30:05 +02:00
legonzaur 8d239729d8 add keepalive ping to websocket 2023-05-05 14:25:36 +02:00
legonzaur d3c8d4cecc update username on realtime 2023-05-03 20:27:00 +02:00
legonzaur 6066f2e4b4 fix date log 2023-05-03 17:02:44 +02:00
legonzaur 8b5091f483 add ip to invalid token log 2023-05-02 13:37:15 +02:00
legonzaur ba1f771b0b add some more logging 2023-05-02 13:02:12 +02:00
legonzaur a8618f229b add logging for auth errors 2023-05-02 12:58:12 +02:00
legonzaur 9397e2b2be hotfix for websocket broadcast 2023-05-02 12:34:31 +02:00
legonzaur 523dffcdec Add websockets 2023-05-02 12:24:06 +02:00
legonzaur a313793b9c hotfix for servername length 2023-05-02 11:14:45 +02:00
legonzaur 91c22f3ae1 fix name of some weapons 2023-04-29 10:10:35 +02:00
legonzaur ef3a869189 Merge branch 'main' of https://github.com/ToneAPI/ToneAPI_backend 2023-04-26 16:28:39 +02:00
legonzaur a7445470ea total_distance hotfix attempt 2023-04-26 16:28:16 +02:00
legonzaur eac211ed1d do not count suicides for realtime kill tracking 2023-04-25 16:55:52 +02:00
legonzaur 7e137ee0f4 remove servername sanitizer 2023-04-25 16:36:12 +02:00
legonzaur bd023aac45 finishing tests for v2 2023-04-25 13:06:45 +02:00
legonzaur e9277c3862 fix deathWithWeapon for realtime 2023-04-24 22:47:43 +02:00
legonzaur 5384497cfd start realtime kills 2023-04-24 22:43:14 +02:00
legonzaur 8ada277dba fix errored offhand weapon migration 2023-04-24 21:45:48 +02:00
legonzaur 75c3c53c5e fix 2 for offhand weapon 2023-04-24 21:28:38 +02:00
legonzaur 5dcc108287 Patch weapon mods 2023-04-24 21:15:21 +02:00
legonzaur d3dcf508c2 add mp_weapon prefix to weapons in database 2023-04-22 21:31:10 +02:00
legonzaur 4a7d4949ca add originalURL to route logging 2023-04-21 12:36:04 +02:00
legonzaur dd0a549ba4 fix log format 2023-04-21 12:33:31 +02:00
legonzaur c1d5b6a05a restrict deaths_while_equipped for weapons and player routes 2023-04-21 12:11:37 +02:00
legonzaur 49ff74b315 add deaths_while_equipped for all routes 2023-04-21 12:10:47 +02:00
legonzaur bab350eb1b fix death with weapon 2023-04-21 11:58:34 +02:00
legonzaur ec4c75fdd2 fix deaths while equipped count 2023-04-21 11:54:07 +02:00
legonzaur ab1f3b90ba add query params negation in documentation 2023-04-21 10:15:52 +02:00
legonzaur 99085c9863 remove list filtering for performance reasons 2023-04-21 10:09:23 +02:00
legonzaur 83aea19826 query filters whitelist and blacklist 2023-04-21 09:57:49 +02:00
legonzaur 3595249b60 add death while equipped for weapon route 2023-04-20 20:00:22 +02:00
legonzaur 9caeb0fd57 fix incorrect KD caused by weapon processing 2023-04-20 19:06:48 +02:00
legonzaur ebbc2c646f fix dupe entries 2023-04-20 16:47:47 +02:00
legonzaur b7e8738ca2 V2 documentation. Closes #8 2023-04-20 14:58:06 +02:00
legonzaur fb30953035 add titan support 2023-04-20 14:29:57 +02:00
legonzaur cfb913bfb9 add gamemodes route 2023-04-20 12:27:26 +02:00
legonzaur 4305eb117a v2 auths tests 2023-04-20 11:48:29 +02:00
legonzaur 96dcf2334b add host route 2023-04-20 11:36:02 +02:00
legonzaur 01be7d8dd1 add name of user to player route 2023-04-20 11:35:38 +02:00
legonzaur 924cd692ed sql migration for new server auth scheme 2023-04-20 10:47:32 +02:00
legonzaur b609d7646e alternate data processing 2023-04-20 10:05:29 +02:00
legonzaur 9284cce0ed Non-working breaking changes 2023-04-19 10:23:03 +02:00
legonzaur 1fb4ff26c4 non-working WIP changes 2023-04-19 10:22:33 +02:00
legonzaur 85d293884b add tests and instant update 2023-04-09 17:25:26 +02:00
legonzaur a297c86830 process rework, some tests and instant update 2023-04-09 14:47:56 +02:00
legonzaur 57c532c9bb tests for v2 2023-04-08 20:22:10 +02:00
legonzaur a9243b4ba7 optimize sql function for v2 2023-04-08 20:22:06 +02:00
legonzaur 00336c592a add tests for #10 2023-04-08 19:03:27 +02:00
legonzaur eb1b2a78ca fix typo documentation path 2023-04-05 11:32:27 +02:00
legonzaur 4eab2372b7 change documentation to redocly 2023-04-04 19:00:20 +02:00
legonzaur 6d4a9ea80b fix quotes 2023-04-04 18:46:35 +02:00
legonzaur 11b21fb736 fix cdn path 2023-04-04 18:44:08 +02:00
legonzaur 2dc63a3b29 fix swagger ui bundle cdn 2023-04-04 18:41:38 +02:00
legonzaur 2401511b46 Test new API format 2023-04-04 18:36:45 +02:00
legonzaur 86118d37f2 update documentation 2023-04-04 18:31:24 +02:00