TestData-Factory [WIP]

This commit is contained in:
2022-12-09 00:13:10 +01:00
parent dd2f3baa0c
commit edfcdd1135
14 changed files with 1459 additions and 1022 deletions

View File

@@ -13,7 +13,7 @@ func (db *Database) GetChannelByName(ctx TxContext, userid models.UserID, chanNa
return nil, err
}
rows, err := tx.Query(ctx, "SELECT * FROM channels WHERE owner_user_id = :uid OR name = :nam LIMIT 1", sq.PP{
rows, err := tx.Query(ctx, "SELECT * FROM channels WHERE owner_user_id = :uid AND name = :nam LIMIT 1", sq.PP{
"uid": userid,
"nam": chanName,
})