Fix code review feedback (closes #5) #6
No reviewers
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sneak/chat#6
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/review-feedback"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Addresses all review items from PR #4 (closes #5):
Changes
GetUserByID()andGetChannelByID()on Database. Model relation methods (AuthToken.User, Session.User, ChannelMember.User, ChannelMember.Channel) now delegate via UserLookup/ChannelLookup interfaces.var slice []*Ttoslice := []*T{}in all collection methods (Members, RecentMessages, Channels, QueuedMessages) so JSON marshals to[]notnull.time.Now()on the returned model.DequeueMessages(ctx, userID, limit)andAckMessages(ctx, entryIDs)methods.GetUserByNick(),GetUserByToken(),DeleteAuthToken(),UpdateUserLastSeen().PRAGMA foreign_keys = ONruns in bothconnect()andNewTest().