diff --git a/src/scripts/link_decrets_and_lois.ts b/src/scripts/associate_decrets_and_lois.ts similarity index 84% rename from src/scripts/link_decrets_and_lois.ts rename to src/scripts/associate_decrets_and_lois.ts index 802f937..c6c927b 100644 --- a/src/scripts/link_decrets_and_lois.ts +++ b/src/scripts/associate_decrets_and_lois.ts @@ -4,7 +4,7 @@ import sade from "sade" import type { JorfTexteVersion } from "$lib" import { db } from "$lib/server/database" -async function linkDecretsToLois(): Promise { +async function associateDecretsToLois(): Promise { for (const texteVersion of ( await db<{ data: JorfTexteVersion }[]>` SELECT data @@ -30,10 +30,10 @@ async function linkDecretsToLois(): Promise { } } -sade("link_decrets_and_lois", true) - .describe("Link decrets to lois in database") +sade("associate_decrets_and_lois", true) + .describe("Associate décrets with lois in database") .action(async () => { - await linkDecretsToLois() + await associateDecretsToLois() process.exit(0) }) .parse(process.argv)