Fix nx lint setup (#3234)

* Fix nx lint setup

* Fixes

* Fixes

* Add missing metadata

Fixes

Fix

Fixes

* Fix
This commit is contained in:
Charles Bochet
2024-01-04 16:39:57 +01:00
committed by GitHub
parent 52d4f8e466
commit c15e138d72
32 changed files with 2961 additions and 3287 deletions

View File

@ -1,5 +1,5 @@
import Image from 'next/image';
import Database from 'better-sqlite3';
import AvatarGrid from '@/app/components/AvatarGrid';
interface Contributor {
@ -9,11 +9,11 @@ interface Contributor {
}
const Contributors = async () => {
const db = new Database('db.sqlite', { readonly: true });
const contributors = db.prepare(`SELECT
const contributors = db
.prepare(
`SELECT
u.login,
u.avatarUrl,
COUNT(pr.id) AS pullRequestCount
@ -25,9 +25,10 @@ const Contributors = async () => {
u.id
ORDER BY
pullRequestCount DESC;
`).all() as Contributor[];
`,
)
.all() as Contributor[];
db.close();
return (