Skip to content

Commit

Permalink
fixed build errors, some using any(improve any in whole project)
Browse files Browse the repository at this point in the history
  • Loading branch information
Singh committed Oct 29, 2023
1 parent 176ce57 commit b1ec1f0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/create-project/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import User from '@/models/user.model';
import CreateProjectComponent from './CreateProjectComponent';
import { toPlainObject } from '../utils/methods';
import Project, { ProjectDocument } from '@/models/project.model';
export const dynamic = 'force-dynamic';

const CreateProject = async ({
params,
Expand Down
2 changes: 2 additions & 0 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import User from '@/models/user.model';
import Project from '@/models/project.model';
import ProjectDataRow from './components/ProjectDataRow';

export const revalidate = 60;

const ProjectName = ({ projectName }: { projectName: string }) => (
<h3 className="text-2xl font-semibold">{projectName}</h3>
);
Expand Down
2 changes: 1 addition & 1 deletion app/utils/methods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ const getTimeRangeData = async (
startDate: any,
isAdmin: any
) => {
let pipeline;
let pipeline: any[];
if (isAdmin) {
pipeline = [
matchProject(projectId),
Expand Down
5 changes: 4 additions & 1 deletion next-auth.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Ref: https://next-auth.js.org/getting-started/typescript#module-augmentation

import { DefaultSession, DefaultUser } from 'next-auth';
import { DefaultSession, DefaultUser, Profile } from 'next-auth';
import { JWT, DefaultJWT } from 'next-auth/jwt';

declare module 'next-auth' {
Expand All @@ -16,6 +16,9 @@ declare module 'next-auth' {
interface User extends DefaultUser {
role: string;
}
interface Profile {
email_verified?: boolean;
}
}

declare module 'next-auth/jwt' {
Expand Down

0 comments on commit b1ec1f0

Please sign in to comment.