Using a new database root directory

This commit is contained in:
2019-09-09 08:46:43 +09:00
parent 6bfe81fdc3
commit 8bfb1e0b4d
10 changed files with 36 additions and 13 deletions

View File

@ -83,6 +83,11 @@ func (list *UserNotifications) Notifications() []*Notification {
return notifications
}
// GetID returns the ID.
func (list *UserNotifications) GetID() string {
return list.UserID
}
// GetUserNotifications ...
func GetUserNotifications(id UserID) (*UserNotifications, error) {
obj, err := DB.Get("UserNotifications", id)