mirror of
https://github.com/semaphoreui/semaphore.git
synced 2025-01-21 07:49:34 +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"
|
||||
"math/rand"
|
||||
"os"
|
||||
"strconv"
|
||||
"time"
|
||||
)
|
||||
|
||||
@ -98,7 +97,8 @@ func addUserProjectRelation(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 {
|
||||
panic(err)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user