Add mode to seed completion

This commit is contained in:
Flashfyre committed 2024-03-17 00:21:04 -04:00
1 parent 2e964b007d
commit 5214c4aff4
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -1,6 +1,6 @@
package db
func TryAddSeedCompletion(uuid []byte, seed string) (bool, error) {
func TryAddSeedCompletion(uuid []byte, seed string, mode int) (bool, error) {
if len(seed) < 24 {
for range 24 - len(seed) {
seed += "0"
@@ -15,7 +15,7 @@ func TryAddSeedCompletion(uuid []byte, seed string) (bool, error) {
return false, nil
}
_, err = handle.Exec("INSERT INTO seedCompletions (uuid, seed, timestamp) VALUES (?, ?, UTC_TIMESTAMP())", uuid, seed)
_, err = handle.Exec("INSERT INTO seedCompletions (uuid, seed, mode, timestamp) VALUES (?, ?, ?, UTC_TIMESTAMP())", uuid, seed, mode)
if err != nil {
return false, err
}