This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
import "server-only";
|
||||
|
||||
export type listmonkData = {
|
||||
export interface listmonkData {
|
||||
email: string;
|
||||
name: string;
|
||||
status: "enabled" | "blocklisted";
|
||||
lists: number[];
|
||||
attribs: Record<string, string>;
|
||||
};
|
||||
}
|
||||
|
||||
async function listmonk(data: listmonkData): Promise<string> {
|
||||
const listmonkUrl = process.env.LISTMONK_URL ?? "http://localhost:9000/api/";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import eventConfig from "@/event-dates.json";
|
||||
|
||||
export function isSignupBlocked(currentTime?: Date): { blocked: boolean; message?: string } {
|
||||
const now = currentTime || new Date();
|
||||
const now = currentTime ?? new Date();
|
||||
const cutoffTime = eventConfig.cutoffTime || "15:00";
|
||||
const blockDurationHours = eventConfig.blockDurationHours || 6;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user