Răsfoiți Sursa

fix lint error

ryosei-f 2 luni în urmă
părinte
comite
647b5f849e

+ 1 - 0
apps/app/src/features/audit-log-bulk-export/interfaces/audit-log-bulk-export.ts

@@ -1,4 +1,5 @@
 import type { HasObjectId, IAttachment, IUser, Ref } from '@growi/core';
+
 import type { SupportedActionType } from '~/interfaces/activity';
 
 export const AuditLogBulkExportFormat = {

+ 1 - 0
apps/app/src/features/audit-log-bulk-export/server/models/audit-log-bulk-export-job.ts

@@ -1,5 +1,6 @@
 import type { HydratedDocument } from 'mongoose';
 import { type Model, Schema } from 'mongoose';
+
 import { AllSupportedActions } from '~/interfaces/activity';
 import { getOrCreateModel } from '~/server/util/mongoose-utils';
 

+ 1 - 0
apps/app/src/features/audit-log-bulk-export/server/routes/apiv3/audit-log-bulk-export.ts

@@ -4,6 +4,7 @@ import { ErrorV3 } from '@growi/core/dist/models';
 import type { Request } from 'express';
 import { Router } from 'express';
 import { body } from 'express-validator';
+
 import { AuditLogBulkExportFormat } from '~/features/audit-log-bulk-export/interfaces/audit-log-bulk-export';
 import type { SupportedActionType } from '~/interfaces/activity';
 import { AllSupportedActions } from '~/interfaces/activity';

+ 0 - 1
apps/app/src/features/audit-log-bulk-export/server/service/audit-log-bulk-export-job-clean-up-cron.integ.ts

@@ -9,7 +9,6 @@ import {
   AuditLogBulkExportJobStatus,
 } from '../../interfaces/audit-log-bulk-export';
 import AuditLogBulkExportJob from '../models/audit-log-bulk-export-job';
-
 import instantiateAuditLogBulkExportJobCleanUpCronService, {
   auditLogBulkExportJobCleanUpCronService,
 } from './audit-log-bulk-export-job-clean-up-cron';

+ 1 - 0
apps/app/src/features/audit-log-bulk-export/server/service/audit-log-bulk-export-job-cron/audit-log-bulk-export-job-cron-service.integ.ts

@@ -15,6 +15,7 @@ import {
   it,
   vi,
 } from 'vitest';
+
 import { SupportedAction } from '~/interfaces/activity';
 import type Crowi from '~/server/crowi';
 import { ResponseMode } from '~/server/interfaces/attachment';

+ 3 - 0
apps/app/src/features/audit-log-bulk-export/server/service/audit-log-bulk-export-job-cron/index.ts

@@ -5,12 +5,14 @@ import type { IUser } from '@growi/core';
 import { getIdForRef, isPopulated } from '@growi/core';
 import type archiver from 'archiver';
 import mongoose from 'mongoose';
+
 import type { SupportedActionType } from '~/interfaces/activity';
 import { SupportedAction, SupportedTargetModel } from '~/interfaces/activity';
 import type Crowi from '~/server/crowi';
 import type { ObjectIdLike } from '~/server/interfaces/mongoose-utils';
 import CronService from '~/server/service/cron';
 import loggerFactory from '~/utils/logger';
+
 import {
   AuditLogBulkExportJobInProgressJobStatus,
   AuditLogBulkExportJobStatus,
@@ -55,6 +57,7 @@ export interface IAuditLogBulkExportJobCronService {
 
 import type { ActivityDocument } from '~/server/models/activity';
 import { preNotifyService } from '~/server/service/pre-notify';
+
 import { compressAndUpload } from './steps/compress-and-upload';
 import { exportAuditLogsToFsAsync } from './steps/exportAuditLogsToFsAsync';
 

+ 2 - 0
apps/app/src/features/audit-log-bulk-export/server/service/audit-log-bulk-export-job-cron/steps/compress-and-upload.ts

@@ -1,6 +1,7 @@
 import type { IUser } from '@growi/core';
 import type { Archiver } from 'archiver';
 import archiver from 'archiver';
+
 import { AuditLogBulkExportJobStatus } from '~/features/audit-log-bulk-export/interfaces/audit-log-bulk-export';
 import { SupportedAction } from '~/interfaces/activity';
 import { AttachmentType } from '~/server/interfaces/attachment';
@@ -10,6 +11,7 @@ import {
 } from '~/server/models/attachment';
 import type { FileUploader } from '~/server/service/file-uploader';
 import loggerFactory from '~/utils/logger';
+
 import type { AuditLogBulkExportJobDocument } from '../../../models/audit-log-bulk-export-job';
 import type { IAuditLogBulkExportJobCronService } from '..';
 

+ 2 - 0
apps/app/src/features/audit-log-bulk-export/server/service/audit-log-bulk-export-job-cron/steps/exportAuditLogsToFsAsync.ts

@@ -3,9 +3,11 @@ import path from 'node:path';
 import { pipeline, Writable } from 'node:stream';
 import type { IUser } from '@growi/core';
 import mongoose, { type FilterQuery } from 'mongoose';
+
 import { AuditLogBulkExportJobStatus } from '~/features/audit-log-bulk-export/interfaces/audit-log-bulk-export';
 import { SupportedAction } from '~/interfaces/activity';
 import Activity, { type ActivityDocument } from '~/server/models/activity';
+
 import type { AuditLogBulkExportJobDocument } from '../../../models/audit-log-bulk-export-job';
 import type { IAuditLogBulkExportJobCronService } from '..';