More layout and customisations.
This commit is contained in:
11
storage/badgecounts.go
Normal file
11
storage/badgecounts.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package storage
|
||||
|
||||
// "database/sql"
|
||||
|
||||
// // Get all for count
|
||||
// var count int
|
||||
// db.Get(&count, `SELECT COUNT(*) FROM user_notifications WHERE user_id = ? AND is_read = FALSE`, userID)
|
||||
|
||||
// // Then get the top 15 for display
|
||||
// var notifications []Notification
|
||||
// db.Select(¬ifications, `SELECT * FROM user_notifications WHERE user_id = ? AND is_read = FALSE ORDER BY created_at DESC LIMIT 15`, userID)
|
||||
Reference in New Issue
Block a user