diff --git a/server/src/api/v1/Files.ts b/server/src/api/v1/Files.ts index 7eca82b42..b2429525e 100644 --- a/server/src/api/v1/Files.ts +++ b/server/src/api/v1/Files.ts @@ -34,7 +34,7 @@ export class Files { : 'files.user_id = :user', { user: shared ? req.user?.username : req.user?.id }) .andWhere(buildWhereQuery(filters, 'files.') || 'true') - .leftJoin('files.parent', 'parent') + // .leftJoin('files.parent', 'parent') .skip(Number(offset) || undefined) .take(Number(limit) || undefined) .orderBy(buildSort(sort as string, 'files.')) diff --git a/server/src/model/index.ts b/server/src/model/index.ts index 48035d0dc..d5a2ab518 100644 --- a/server/src/model/index.ts +++ b/server/src/model/index.ts @@ -45,7 +45,7 @@ export const runDB = async (): Promise => { rejectUnauthorized: false } : false, schema: 'public', - synchronize: true, + synchronize: false, logging: true, entities: [`${__dirname}/entities/*.js`], subscribers: [`${__dirname}/subscriber/*.js`],