Commit graph

19 commits

Author SHA1 Message Date
Jonathan Barrow
8432cfd6d5
feat: update to latest NEX libs 2025-02-15 23:31:32 -05:00
Jonathan Barrow
915b52c88d
chore: migrate to SQL manager 2024-04-27 16:22:30 -04:00
Daniel López Guimaraes
a662ca1961
database/3ds: Remove old comment 2024-04-20 13:51:00 +01:00
Daniel López Guimaraes
f4a4b2830b
database: Update database defaults and add country
This prevents errors when scanning the fields on the database
2024-04-20 13:44:44 +01:00
Jonathan Barrow
af603f2295
fix: close rows when existing database functions 2024-04-09 14:28:04 -04:00
Jonathan Barrow
50325cf7c2
3ds: temp revert error check in GetFriendPersistentInfos 2024-04-08 15:55:00 -04:00
Jonathan Barrow
4d299a3612
rewrite: Migrate to v2 libraries and small bug fixes 2024-04-08 08:53:39 -04:00
Jonathan Barrow
abb19ddf43
make 3DS friends display as online again 2023-11-16 16:24:06 -05:00
Daniel López Guimaraes
3f48ae8306
Update FriendPersistentInfo on 3DS
One of the DateTimes doesn't represent the date of the friendship, but
when the friend has updated their Mii.

I noticed this when playing with the friend servers researching
information about the data stored on the FRD sysmodule.

The friendship date is still stored internally, but it's not provided to
the user anymore.
2023-10-08 19:24:58 +01:00
Jonathan Barrow
73871a4537
remove database.PIDArrayToString in favor of pq.Array 2023-10-06 19:13:19 -04: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
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
2cce4a7af4
Updated to latest NEX libs 2023-04-08 10:44:51 -04:00
light
b4ce1e275b Update database 2023-02-23 20:59:02 -05:00