This commit is contained in:
parent
763a451251
commit
c9edb57505
6 changed files with 6 additions and 7 deletions
|
@ -249,7 +249,6 @@ func (a *Admin) getFlashes(w http.ResponseWriter, r *http.Request) []FlashMessag
|
|||
return messages
|
||||
}
|
||||
|
||||
|
||||
// render renders a template with the given data
|
||||
func (a *Admin) render(w http.ResponseWriter, r *http.Request, templateName string, data TemplateData) {
|
||||
// Add current user data
|
||||
|
@ -708,4 +707,4 @@ func (a *Admin) handleChannelPluginDetailOrDelete(w http.ResponseWriter, r *http
|
|||
|
||||
// Redirect to channel plugins list
|
||||
http.Redirect(w, r, "/admin/channelplugins", http.StatusSeeOther)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -390,4 +390,4 @@ func (a *App) processReminder(reminder *model.Reminder) {
|
|||
if err := a.db.MarkReminderAsProcessed(reminder.ID); err != nil {
|
||||
a.logger.Error("Error marking reminder as processed", "error", err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -774,4 +774,4 @@ func initDatabase(db *sql.DB) error {
|
|||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
|
|
@ -220,4 +220,4 @@ func MigrateDown(db *sql.DB, targetVersion int) error {
|
|||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
|
|
@ -217,4 +217,4 @@ func parseInt64(s string) (int64, error) {
|
|||
var n int64
|
||||
_, err := fmt.Sscanf(s, "%d", &n)
|
||||
return n, err
|
||||
}
|
||||
}
|
||||
|
|
|
@ -275,4 +275,4 @@ func (t *TelegramPlatform) SendMessage(msg *model.Message) error {
|
|||
|
||||
t.log.Debug("Message sent successfully")
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue