Skip to content

New Settings Logic - #160

Open
tuturd wants to merge 1 commit into
devfrom
feat/new-settings
Open

New Settings Logic#160
tuturd wants to merge 1 commit into
devfrom
feat/new-settings

Conversation

@tuturd

@tuturd tuturd commented Aug 26, 2026

Copy link
Copy Markdown
Member

No description provided.

Comment on lines +26 to +39
export const settingDefinitions: SettingDefinition[] = [
{ key: 'preRegistration', label: 'Pré-inscription', column: 'pre_registration_open', roles: [] },
{ key: 'shotgun', label: 'Shotgun', column: 'shotgun_open', roles: [] },
{ key: 'sdi', label: 'SDI (Billetterie)', column: 'sdi_open', roles: [] },
{ key: 'wei', label: 'WEI (Billetterie + Tentes)', column: 'wei_open', roles: [] },
{ key: 'food', label: 'Nourriture (Billetterie)', column: 'food_open', roles: [] },
{ key: 'challenge', label: 'Challenges (Affichage des challenges)', column: 'chall_open', roles: [] },
{
key: 'makerBattleGroup',
label: 'Groupes de défis TC & Branche (Affichage des groupes)',
column: 'maker_battle_group_open',
roles: [],
},
];

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

C'est pas un peu moche comme fonctionnement?...

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tu trouves ? pourquoi ?

Comment on lines +78 to +95
export const validateShotgun = async (teamId: number) => {
await db.transaction(async (tx) => {
await tx.insert(teamShotgunSchema).values({ team_id: teamId });
});
};

export const alreadyShotgun = async (teamId: number) => {
const shotgunTeam = await db
.select({ shotgunId: teamShotgunSchema.id })
.from(teamShotgunSchema)
.where(eq(teamShotgunSchema.team_id, teamId));

if (shotgunTeam[0]) {
return true;
} else {
return false;
}
};

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pourquoi la partie shotgun dans les settings du coup...

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hummm ça ça devait être du code qui trainait dans la partie "events", j'avais pas vu, je déplacerais

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants