added --today parameter to send a nofitication for todays events else its change or new events. also fetches current and next month now.
This commit is contained in:
@@ -19,4 +19,11 @@ export function prefixKeysWithDollar<T extends Record<string, any>>(obj: T): Add
|
||||
|
||||
export function transformArray<T extends Record<string, any>>(arr: T[]): AddDollarPrefix<T>[] {
|
||||
return arr.map(prefixKeysWithDollar);
|
||||
}
|
||||
|
||||
export function pad_l2 ( _thing: string | number ): string {
|
||||
if ( typeof _thing == "number" ) {
|
||||
_thing = JSON.stringify(_thing);
|
||||
};
|
||||
return _thing.padStart(2, "0");
|
||||
}
|
||||
Reference in New Issue
Block a user