mirror of
https://github.com/System-End/plura.git
synced 2026-04-19 20:55:11 +00:00
fix: fix potential duplicates when creating a system
This commit is contained in:
parent
7a49b66338
commit
e3911cc4a5
1 changed files with 2 additions and 0 deletions
|
|
@ -85,6 +85,7 @@ impl System {
|
|||
r#"
|
||||
INSERT INTO system_oauth_process (owner_id, csrf)
|
||||
VALUES ($1, $2)
|
||||
ON CONFLICT (owner_id) DO UPDATE SET csrf = $2
|
||||
"#,
|
||||
system.owner_id,
|
||||
secret
|
||||
|
|
@ -204,6 +205,7 @@ impl System {
|
|||
r#"
|
||||
INSERT INTO system_oauth_process (owner_id, csrf)
|
||||
VALUES ($1, $2)
|
||||
ON CONFLICT (owner_id) DO UPDATE SET csrf = $2
|
||||
"#,
|
||||
user_id.id,
|
||||
secret
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue