mirror of
https://github.com/pagefaultgames/rogueserver.git
synced 2025-06-21 09:02:48 +02:00
11 lines
227 B
Go
11 lines
227 B
Go
package db
|
|
|
|
func TryAddDailyRun(seed string) error {
|
|
_, err := handle.Exec("INSERT INTO dailyRuns (seed, date) VALUES (?, UTC_DATE()) ON DUPLICATE KEY UPDATE date = date", seed)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
return nil
|
|
}
|