Implement a couple of rpcs
All checks were successful
ci/woodpecker/push/build Pipeline was successful
All checks were successful
ci/woodpecker/push/build Pipeline was successful
Signed-off-by: Nikolai Rodionov <iam@allanger.xyz>
This commit is contained in:
@@ -60,7 +60,8 @@ func CreateProject(ctx context.Context, db *sql.DB, data *ProjectData) error {
|
||||
VALUES
|
||||
($1, $2, $3, $4, $5, $6);
|
||||
`
|
||||
if _, err := tx.ExecContext(ctx, queryMembership,
|
||||
if _, err := tx.ExecContext(
|
||||
ctx, queryMembership,
|
||||
data.UUID, data.CreatedBy, "owner", "active", data.CreatedBy, data.CreatedAt,
|
||||
); err != nil {
|
||||
var pgErr *pgconn.PgError
|
||||
|
||||
Reference in New Issue
Block a user