mirror of
https://github.com/PretendoNetwork/friends.git
synced 2024-06-01 11:37:53 -04:00
8d8a05a7e2
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.
9 lines
321 B
Go
9 lines
321 B
Go
package database_wiiu
|
|
|
|
import friends_wiiu_types "github.com/PretendoNetwork/nex-protocols-go/friends-wiiu/types"
|
|
|
|
// GetUserNotifications returns notifications for a user
|
|
func GetUserNotifications(pid uint32) []*friends_wiiu_types.PersistentNotification {
|
|
return make([]*friends_wiiu_types.PersistentNotification, 0)
|
|
}
|