mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-02-26 08:53:21 +00:00
fix: make the repoId case insensitive
This commit is contained in:
@@ -42,7 +42,13 @@ export async function getRepository(
|
||||
if (!opts.includeFiles) {
|
||||
project.originalFiles = 0;
|
||||
}
|
||||
const data = await AnonymizedRepositoryModel.findOne({ repoId }, project);
|
||||
const data = await AnonymizedRepositoryModel.findOne(
|
||||
{ repoId },
|
||||
project
|
||||
).collation({
|
||||
locale: "en",
|
||||
strength: 2,
|
||||
});
|
||||
if (!data)
|
||||
throw new AnonymousError("repo_not_found", {
|
||||
object: repoId,
|
||||
|
||||
Reference in New Issue
Block a user