Fixed some type errors
continuous-integration/drone/push Build is passing Details

main
Guus van Meerveld 2 years ago
parent 66b617326d
commit 2b4b0d0a39
Signed by: Guusvanmeerveld
GPG Key ID: 2BA7D7912771966E

@ -5,7 +5,7 @@ import z from "zod";
import { format as formatTimeAgo } from "timeago.js";
import { RepositoryResponse } from "@models/responses";
import { RepositoryResponse } from "@models/git/responses";
const BestRepository: FC<{ repository: z.infer<typeof RepositoryResponse> }> =
({ repository }) => {

@ -7,7 +7,7 @@ import Link from "next/link";
import multipleClassNames from "@utils/multipleClassNames";
import { RepositoryResponse } from "@models/responses";
import { RepositoryResponse } from "@models/git/responses";
import styles from "./repositories.module.scss";

@ -3,7 +3,7 @@ import z from "zod";
import Image from "next/image";
import { UserResponse } from "@models/responses";
import { UserResponse } from "@models/git/responses";
import { giteaServerUrl } from "@utils/config";
import multipleClassNames from "@utils/multipleClassNames";

@ -16,7 +16,7 @@ export const sessionOptions = {
};
export const registrationIsEnabled =
process.env.NEXT_PUBLIC_ALLOW_REGISTRATION !== undefined ? true : false;
process.env.ALLOW_REGISTRATION !== undefined ? true : false;
export const saltRoundsForPassword =
parseInt(process.env.PASSWORD_SALT_ROUNDS ?? "") || 10;

@ -14,4 +14,4 @@ export const unauthorized: Response = baseError(
);
export const parseUserInputError: (error: unknown) => string = (error) =>
"Failed to parse user input: ".concat(error);
"Failed to parse user input: ".concat(JSON.stringify(error));

Loading…
Cancel
Save