chore: update point system
This commit is contained in:
@@ -661,6 +661,12 @@ export const deleteCategoryAdmin = async (
|
||||
// PARAMÈTRES GLOBAUX
|
||||
// ============================================
|
||||
|
||||
export interface PointsTier {
|
||||
min: number;
|
||||
max: number; // 0 = illimité
|
||||
points: number;
|
||||
}
|
||||
|
||||
export interface AppSettings {
|
||||
penalties_enabled: boolean;
|
||||
show_amende_score: boolean;
|
||||
@@ -668,10 +674,8 @@ export interface AppSettings {
|
||||
points_categories_weed: string[];
|
||||
points_categories_zipette: string[];
|
||||
points_separated: boolean;
|
||||
points_weed_threshold_price: number;
|
||||
points_weed_per_threshold: number;
|
||||
points_zipette_threshold_price: number;
|
||||
points_zipette_per_threshold: number;
|
||||
points_weed_tiers: PointsTier[];
|
||||
points_zipette_tiers: PointsTier[];
|
||||
}
|
||||
|
||||
export const getSettings = async (): Promise<{ success: boolean; settings?: AppSettings; error?: string }> => {
|
||||
|
||||
Reference in New Issue
Block a user