(ctx context.Context, id string, withSecret bool)
| 1618 | } |
| 1619 | |
| 1620 | func (c *connection) FindMagicAuthToken(ctx context.Context, id string, withSecret bool) (*database.MagicAuthToken, error) { |
| 1621 | res := &magicAuthTokenDTO{} |
| 1622 | err := c.getDB(ctx).QueryRowxContext(ctx, "SELECT t.* FROM magic_auth_tokens t WHERE t.id=$1", id).StructScan(res) |
| 1623 | if err != nil { |
| 1624 | return nil, parseErr("magic auth token", err) |
| 1625 | } |
| 1626 | return c.magicAuthTokenFromDTO(res, withSecret) |
| 1627 | } |
| 1628 | |
| 1629 | func (c *connection) FindMagicAuthTokenWithUser(ctx context.Context, id string) (*database.MagicAuthTokenWithUser, error) { |
| 1630 | res := &magicAuthTokenWithUserDTO{} |
nothing calls this directly
no test coverage detected