mirror of https://github.com/allinssl/allinssl
parent
4312baa8a9
commit
21f0d3017b
|
@ -55,7 +55,7 @@ func SaveUserToDB(db *public.Sqlite, user *MyUser, Type string) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if len(data) > 0 {
|
if len(data) > 0 {
|
||||||
_, err = db.Update(map[string]interface{}{
|
_, err = db.Where("id=?", []any{data[0]["id"]}).Update(map[string]interface{}{
|
||||||
"private_key": string(pemBytes),
|
"private_key": string(pemBytes),
|
||||||
"reg": regBytes,
|
"reg": regBytes,
|
||||||
"update_time": now,
|
"update_time": now,
|
||||||
|
|
Loading…
Reference in New Issue