chore: use strict compilation mode

This commit is contained in:
tdurieux
2023-02-13 13:38:57 +01:00
parent 3ab9b0c7a4
commit ec6098b3a1
33 changed files with 4007 additions and 2160 deletions

View File

@@ -9,7 +9,7 @@ export interface IAnonymizedPullRequest {
anonymizeDate: Date;
source: {
pullRequestId: number;
repositoryFullName?: string;
repositoryFullName: string;
accessToken?: string;
};
owner: string;

View File

@@ -17,7 +17,7 @@ export interface IAnonymizedRepository {
};
owner: string;
truckedFileList: boolean;
originalFiles: Tree;
originalFiles?: Tree;
conference: string;
options: {
terms: string[];

View File

@@ -13,6 +13,7 @@ export const database = mongoose.connection;
export let isConnected = false;
export async function connect() {
mongoose.set("strictQuery", false);
await mongoose.connect(MONGO_URL + "production", {
authSource: "admin",
appName: "Anonymous GitHub Server",