Commit Graph

30 Commits

Author SHA1 Message Date
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
a1e82c92d3 Updated env var names 2023-05-01 15:16:39 -04: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
light
054b9f17d4 Add WiiU default values 2023-04-02 18:41:58 -04:00
light
d90bd745d9 Merge branch 'feature-unfriendly-methods' of https://github.com/PretendoNetwork/friends-secure into feature-unfriendly-methods 2023-04-01 18:30:06 -04:00
light
9bfb3d2474 Add defaults to table and stop invalid blacklists 2023-04-01 18:30:02 -04:00
Jonathan Barrow
50e2ccecb8 Added 100 result limit to friendlist query for 3DS 2023-04-01 10:48:06 -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
1d82e5f182 Make user1_pid, user2_pid unique on wiiu.friendships 2022-10-09 10:24:37 -04: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
874e8d9f38 Added logs 2022-09-11 15:03:40 -04:00
Jonathan Barrow
3437805af1 Moved database handlers to console-specific package 2022-09-11 02:38:16 -04:00
Jonathan Barrow
ca54e576d5 Move from Cassandra to Postgres 2022-09-11 02:22:37 -04:00
Jonathan Barrow
9ed6d3add8 Updated database logger to globals.Logger 2022-09-10 14:23:45 -04:00
Jonathan Barrow
5b5d9db244 Split database.go into own functions, made database package, made globals package 2022-09-10 09:03:37 -04:00