From 5e232438aa3812c07b4fbfa68b574f8c7aa48f19 Mon Sep 17 00:00:00 2001 From: fgren <179166750+fgren@users.noreply.github.com> Date: Tue, 17 Dec 2024 10:48:58 +0100 Subject: [PATCH] add seed for cpu --- src/database/seed/data.ts | 1 + src/lib/utils/committee-ordering/enums.ts | 9 +++++++++ src/lib/utils/committee-ordering/sort.ts | 2 ++ 3 files changed, 12 insertions(+) diff --git a/src/database/seed/data.ts b/src/database/seed/data.ts index 0db98d6a..c0fdb883 100644 --- a/src/database/seed/data.ts +++ b/src/database/seed/data.ts @@ -63,6 +63,7 @@ export const COMMITTEES = [ { name: "Trivselrådet", shortName: "trivsel" }, { name: "Valberedningen", shortName: "valb" }, { name: "Tackmästeriet", shortName: "tackm" }, + { name: "Centralprocessutskottet", shortName: "cpu" }, { name: "Övriga förtroendevalda", shortName: "other" }, ].map((c) => ({ ...c, ...getImageUrls(c.shortName) })); diff --git a/src/lib/utils/committee-ordering/enums.ts b/src/lib/utils/committee-ordering/enums.ts index f06c91fc..43f7541c 100644 --- a/src/lib/utils/committee-ordering/enums.ts +++ b/src/lib/utils/committee-ordering/enums.ts @@ -187,3 +187,12 @@ export enum Tackm { "dsek.tackm.mastare", "dsek.tackm.mdlm", } + +export enum Cpu { + "dsek.cpu.mastare", + "dsek.cpu.vice_mastare", + "dsek.cpu.dwwwansv", + "dsek.cpu.root", + "dsek.cpu.utvecklare", + "dsek.cpu.funk", +} diff --git a/src/lib/utils/committee-ordering/sort.ts b/src/lib/utils/committee-ordering/sort.ts index 7ed9d4a3..340d8f0b 100644 --- a/src/lib/utils/committee-ordering/sort.ts +++ b/src/lib/utils/committee-ordering/sort.ts @@ -3,6 +3,7 @@ import { Aktu, BoardOrder, Cafe, + Cpu, Dchip, Fram, Infu, @@ -68,4 +69,5 @@ const committeeEnums = { trivsel: Trivsel, valb: Valb, tackm: Tackm, + cpu: Cpu, } as const;