fixup! more path sanitization

This commit is contained in:
ゆめ 2024-11-19 03:15:48 -06:00
parent 8a26ab9fb5
commit 3d3bfad5d0
No known key found for this signature in database

View file

@ -96,7 +96,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
// Check if the circular reference will occur
const checkCircle = async (folderId: string, limit: number = 32): Promise<boolean> => {
if (limit <= 0) {
return false;
return true;
}
const folder2 = await this.driveFoldersRepository.findOneByOrFail({
id: folderId,