Commit graph

33 commits

Author SHA1 Message Date
Jonathan Barrow
8432cfd6d5
feat: update to latest NEX libs 2025-02-15 23:31:32 -05:00
Michael Wolfendale
71f47f9ffc
fix: remove n+1 queries 2024-06-24 18:30:25 +01:00
Jonathan Barrow
7bc3dbf4f1
fix: use Copy() on presence data to get around race condition 2024-05-16 07:43:26 -04:00
Daniel López Guimaraes
116b5c7df5
fix(database): Proper checks on QueryRow for sql.ErrNoRows 2024-05-15 23:02:28 +01:00
Jonathan Barrow
9855dea445
refactor(wiiu): dont track NNAInfo in user state, use the DB 2024-05-12 15:56:24 -04:00
Jonathan Barrow
915b52c88d
chore: migrate to SQL manager 2024-04-27 16:22:30 -04:00
Jonathan Barrow
af603f2295
fix: close rows when existing database functions 2024-04-09 14:28:04 -04:00
Jonathan Barrow
18e1a0fefa
chore: migrate ConnectedUser map to MutexMap 2024-04-09 12:21:50 -04:00
Jonathan Barrow
4d299a3612
rewrite: Migrate to v2 libraries and small bug fixes 2024-04-08 08:53:39 -04:00
Imora
f123393866
fixed comment typo in set_user_blocked.go 2023-11-16 15:19:27 -06:00
Jonathan Barrow
6916dbb1c1
fixed database usage of new DateTime API 2023-11-16 00:01:37 -05:00
Jonathan Barrow
de11455a1b
use new PID, DateTime and method returns 2023-11-14 22:47:52 -05:00
Daniel López Guimaraes
502035dc74
Replace return empty lists with nil 2023-08-15 21:35:33 +01:00
Daniel López Guimaraes
06d89d8b77
Add missing error handling and update modules 2023-08-15 20:56:01 +01:00
Daniel López Guimaraes
84566dd6a8
Move GetUserDataByPID to utility 2023-08-14 13:17:48 +01:00
Daniel López Guimaraes
8d8a05a7e2
Add missing error handling
Now database getters do error handling aswell, and in case of any error,
the NEX or GRPC method throws a proper error about it.

There are still some doubts on how to handle errors when a list of data
is processed, so for now skip that element on the list and continue.

Also add some constant errors to do better error handling.
2023-08-13 23:19:34 +01:00
Daniel López Guimaraes
2f80336681
Rename friends-secure to friends and remove Mongo
Replace MongoDB usage with GRPC calls to the account server. Also
include documentation on the README and a Makefile.
2023-08-13 01:05:08 +01:00
Daniel López Guimaraes
3d5e78f532
Improve error handling
Now that we can return errors to nex-protocols-go and it will handle it,
we can improve how errors are being handled in friends.

There's probably room for improvement from this, since I haven't added
error handling on some database getters due to uncertainties on whether
the error should interrupt an action or not.
2023-08-12 23:53:21 +01:00
SuperMarioDaBom
db972eacc6 Adjust import names for consistency 2023-07-17 18:35:33 -07:00
SuperMarioDaBom
1b43935ea6 Update to latest version of libraries 2023-07-16 21:19:30 -07:00
Jonathan Barrow
e5306b2961
Filter expired WiiU friend requests from the returned list 2023-04-18 11:40:30 -04:00
Jonathan Barrow
e14e5d4dc6
Added gRPC method to query friend PIDs 2023-04-10 22:00:48 -04:00
Jonathan Barrow
2cce4a7af4
Updated to latest NEX libs 2023-04-08 10:44:51 -04:00
Jonathan Barrow
b110b38edf
Added 100 result limit to friendlist query 2023-04-01 10:41:08 -04:00
light
598a75f37d Add blocking features and refactor a bit 2023-03-31 17:05:35 -04:00
light
116a19631e Stop duplicate friend requests 2023-03-27 01:25:51 -04:00
light
186d9635ef Add friend request canceling and deletion 2023-03-26 23:32:26 -04:00
light
27c9b21047 Add friend removal 2023-03-26 17:41:04 -04:00
Jonathan Barrow
bf4f8bfc53
Updated SQL query in accept_friendship_and_return_friend_info.go 2023-02-25 23:24:15 -05:00
light
b4ce1e275b Update database 2023-02-23 20:59:02 -05:00
Jonathan Barrow
1cfdb247e6
Reactivate friendships if existed before 2022-09-28 20:59:54 -04:00
Jonathan Barrow
a82fee4c93
Added active flag to blocks and friendships 2022-09-16 20:17:56 -04:00
Jonathan Barrow
3437805af1
Moved database handlers to console-specific package 2022-09-11 02:38:16 -04:00