Browse Source

chore: move to ee

pull/9879/head
DarkPhoenix2704 1 month ago
parent
commit
7ebeb21268
  1. 2
      packages/nocodb/src/modules/jobs/jobs.module.ts
  2. 29
      packages/nocodb/src/modules/jobs/jobs/snapshot/snapshot.controller.ts

2
packages/nocodb/src/modules/jobs/jobs.module.ts

@ -44,7 +44,6 @@ import { QueueService as FallbackQueueService } from '~/modules/jobs/fallback/fa
import { JOBS_QUEUE } from '~/interface/Jobs';
import { RecoverLinksMigration } from '~/modules/jobs/migration-jobs/nc_job_003_recover_links';
import { CleanupDuplicateColumnMigration } from '~/modules/jobs/migration-jobs/nc_job_004_cleanup_duplicate_column';
import { SnapshotController } from '~/modules/jobs/jobs/snapshot/snapshot.controller';
export const JobsModuleMetadata = {
imports: [
@ -74,7 +73,6 @@ export const JobsModuleMetadata = {
SourceCreateController,
SourceDeleteController,
DataExportController,
SnapshotController,
]
: []),
],

29
packages/nocodb/src/modules/jobs/jobs/snapshot/snapshot.controller.ts

@ -1,29 +0,0 @@
import { Controller, Inject, Param, Post, UseGuards } from '@nestjs/common';
import { MetaApiLimiterGuard } from '~/guards/meta-api-limiter.guard';
import { GlobalGuard } from '~/guards/global/global.guard';
import { IJobsService } from '~/modules/jobs/jobs-service.interface';
import { TenantContext } from '~/decorators/tenant-context.decorator';
import { NcContext } from '~/interface/config';
@Controller()
@UseGuards(MetaApiLimiterGuard, GlobalGuard)
export class SnapshotController {
constructor(
@Inject('JobsService') private readonly jobsService: IJobsService,
) {}
// TODO: @DarkPhoenix2704 Add ACL
@Post('/api/v2/meta/bases/:baseId/snapshots/:snapshotId/restore')
async restoreSnapshot(
@TenantContext() context: NcContext,
@Param('snapshotId') snapshotId: string,
) {
// return await this.snapshotService.restoreSnapshot(context, snapshotId);
}
// TODO: @DarkPhoenix2704 Add ACL
@Post('/api/v2/meta/bases/:baseId/snapshots')
async createSnapshot(@TenantContext() context: NcContext) {
// return await this.snapshotService.createSnapshot();
}
}
Loading…
Cancel
Save