feat(lstv2 move): moved lstv2 into this app to keep them combined and easier to maintain
This commit is contained in:
12
lstV2/server/globalUtils/greetingEmail.ts
Normal file
12
lstV2/server/globalUtils/greetingEmail.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { getHours } from "date-fns";
|
||||
export const greetingStuff = async (date = new Date()) => {
|
||||
const hour = getHours(date);
|
||||
|
||||
if (hour < 12) {
|
||||
return "Good morning";
|
||||
} else if (hour < 18) {
|
||||
return "Good afternoon";
|
||||
} else {
|
||||
return "Good evening";
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user