Commit graph

8 commits

Author SHA1 Message Date
Daniel López Guimaraes
116b5c7df5
fix(database): Proper checks on QueryRow for sql.ErrNoRows 2024-05-15 23:02:28 +01:00
Jonathan Barrow
915b52c88d
chore: migrate to SQL manager 2024-04-27 16:22:30 -04: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
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
Jonathan Barrow
3437805af1
Moved database handlers to console-specific package 2022-09-11 02:38:16 -04:00
Renamed from database/save_friend_request.go (Browse further)