|
@@ -3,10 +3,9 @@ import { ConfigService } from '@nestjs/config';
|
|
|
import { readFileSync } from 'fs';
|
|
|
import { join } from 'path';
|
|
|
import { CacheService } from 'src/cache/cache.service';
|
|
|
+import configuration from 'src/config/configuration';
|
|
|
import { RotateService } from 'src/rotate/rotate.service';
|
|
|
|
|
|
-// import * as BreakPointIds from '../../ws/points-BreakPointId.json';
|
|
|
-// import { SceneService } from 'src/scene/scene.service';
|
|
|
|
|
|
const seqExeAsyncFn = (asyncFn) => {
|
|
|
let runPromise = null;
|
|
@@ -130,12 +129,13 @@ export class MoveService implements OnModuleInit {
|
|
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
|
async onModuleInit() {
|
|
|
- // const app_id = this.configService.get('app.appId');
|
|
|
- // const prefix = this.configService.get('app.prefix');
|
|
|
- const app_id = '0000000005';
|
|
|
- const prefix = '/mnt/metaverse/scene';
|
|
|
- console.log('app_id', app_id);
|
|
|
- console.log('prefix', prefix);
|
|
|
+ const app_id = configuration().app.appId;
|
|
|
+ const prefix = configuration().app.prefix;
|
|
|
+
|
|
|
+ // const app_id = '0000000005';
|
|
|
+ // const prefix = '/mnt/metaverse/scene';
|
|
|
+ console.log('app_id', app_id, configuration().app.appId);
|
|
|
+ console.log('prefix', prefix, configuration().app.appId);
|
|
|
let path;
|
|
|
// let path: string;
|
|
|
if (process.env.NODE_ENV === 'development') {
|