refactor: Update time planning feature

- Update checksums for browser compatibility
- Add script to kill running server process
- Refactor time planning structure and handling
- Adjust database schema and type definitions accordingly
This commit is contained in:
aronmal 2024-03-15 10:59:41 +01:00
parent faa42f0899
commit 3c404ab5fa
Signed by: aronmal
GPG key ID: 816B7707426FC612
8 changed files with 130 additions and 146 deletions

View file

@ -67,21 +67,7 @@ export interface components {
*/
timezone: string;
features: {
timePlanning: {
enabled: boolean;
channelId: components["schemas"]["idOrNull"];
/** @example 0 */
targetMinute: number;
/** @example 1 */
targetHour: number;
/** @example 1 */
targetDay: number;
roles: {
enabled: boolean;
isAvailableRoleId: components["schemas"]["idOrNull"];
wantsToBeNotifieRoledId: components["schemas"]["idOrNull"];
};
};
timePlanning: components["schemas"]["timePlanning"];
};
matches: components["schemas"]["match"][];
checksum: string;
@ -105,11 +91,18 @@ export interface components {
utc_ts: string;
};
timePlanning: {
enabled: boolean;
channelId: components["schemas"]["idOrNull"];
rolesEnabled: boolean;
isAvailableRoleId: components["schemas"]["idOrNull"];
wantsToBeNotifieRoledId: components["schemas"]["idOrNull"];
/** @example 0 */
targetMinute: number;
/** @example 1 */
targetHour: number;
/** @example 1 */
targetDay: number;
roles: {
enabled: boolean;
isAvailableRoleId: components["schemas"]["idOrNull"];
wantsToBeNotifieRoledId: components["schemas"]["idOrNull"];
};
messageIds: {
0: components["schemas"]["idOrNull"];
1: components["schemas"]["idOrNull"];