Fix code review feedback (closes #5) #6
Reference in New Issue
Block a user
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().