Commit 1cc01a95 authored by nanahira's avatar nanahira

fix

parent f50c48f4
...@@ -3,7 +3,6 @@ import fs from 'fs'; ...@@ -3,7 +3,6 @@ import fs from 'fs';
import path from 'path'; import path from 'path';
import child_process from 'child_process'; import child_process from 'child_process';
import os from 'os'; import os from 'os';
import { S3Service } from '../s3/s3.service';
import util from 'util'; import util from 'util';
import { v4 as uuidv4 } from 'uuid'; import { v4 as uuidv4 } from 'uuid';
import readdirp from 'readdirp'; import readdirp from 'readdirp';
...@@ -11,13 +10,14 @@ import _ from 'lodash'; ...@@ -11,13 +10,14 @@ import _ from 'lodash';
import { ConfigService } from '@nestjs/config'; import { ConfigService } from '@nestjs/config';
import internal from 'stream'; import internal from 'stream';
import { PackageResult } from '../dto/PackageResult.dto'; import { PackageResult } from '../dto/PackageResult.dto';
import { PackageS3Service } from '../package-s3/package-s3.service';
@Injectable() @Injectable()
export class PackagerService extends ConsoleLogger { export class PackagerService extends ConsoleLogger {
bucket_max = 10 * 1024 ** 2; bucket_max = 10 * 1024 ** 2;
bucket_enter = 1 * 1024 ** 2; bucket_enter = 1 * 1024 ** 2;
constructor(private s3: S3Service, config: ConfigService) { constructor(private s3: PackageS3Service, config: ConfigService) {
super('packager'); super('packager');
this.bucket_max = (parseInt(config.get('PACKAGE_BUCKET_MAX')) || 10) * 1024 ** 2; this.bucket_max = (parseInt(config.get('PACKAGE_BUCKET_MAX')) || 10) * 1024 ** 2;
this.bucket_enter = (parseInt(config.get('PACKAGE_BUCKET_ENTER')) || 1) * 1024 ** 2; this.bucket_enter = (parseInt(config.get('PACKAGE_BUCKET_ENTER')) || 1) * 1024 ** 2;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment