mirror of
https://github.com/semaphoreui/semaphore.git
synced 2025-01-22 00:00:42 +01:00
test: use store to delete user
This commit is contained in:
parent
ac80b91e3f
commit
dbcdd7ef17
@ -9,7 +9,6 @@ import (
|
|||||||
"github.com/snikch/goodman/transaction"
|
"github.com/snikch/goodman/transaction"
|
||||||
"math/rand"
|
"math/rand"
|
||||||
"os"
|
"os"
|
||||||
"strconv"
|
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -98,7 +97,8 @@ func addUserProjectRelation(pid int, user int) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func deleteUserProjectRelation(pid int, user int) {
|
func deleteUserProjectRelation(pid int, user int) {
|
||||||
_, err := store.Sql().Exec("delete from project__user where project_id=? and user_id=?", strconv.Itoa(pid), strconv.Itoa(user))
|
err := store.DeleteProjectUser(pid, user)
|
||||||
|
//_, err := store.Sql().Exec("delete from project__user where project_id=? and user_id=?", strconv.Itoa(pid), strconv.Itoa(user))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user