in src/api/websites/db.ts [29:39]
export async function retrieveWebsiteByUrl(
conn: DbConnectionType,
url: string,
): Promise<Website> {
const res = await retrieveWebsiteList(conn, {
where: SQL`WHERE url = ${url}`,
});
if (res.length === 0)
throw new NotFoundError(`no audited website found for url "${url}"`);
return res[0];
}