fix: hooks, event-types and booking references

This commit is contained in:
Agusti Fernandez Pardo committed 2022-05-20 01:45:54 +02:00
1 parent f2ce2f324b
commit dc967b7d9e
4 files changed
+25 -48

No files matched your search

-14
View File
@@ -1,22 +1,8 @@
// import type { NextApiRequest } from "next";
import { NextMiddleware } from "next-api-middleware";
import { hashAPIKey } from "@calcom/ee/lib/api/apiKeys";
import prisma from "@calcom/prisma";
// /** @todo figure how to use the one from `@calcom/types`fi */
// /** @todo: remove once `@calcom/types` is updated with it.*/
// declare module "next" {
// export interface NextApiRequest extends NextApiRequest {
// userId: number;
// body: any;
// method: string;
// query: {
// apiKey: string;
// };
// }
// }
// Used to check if the apiKey is not expired, could be extracted if reused. but not for now.
export const dateNotInPast = function (date: Date) {
const now = new Date();