visualisierung
This commit is contained in:
1 parent
d0655f3638
commit
367c93c93e
84 files changed
+2265
-148
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import { Injectable } from '@nestjs/common';
|
||||
import { Injectable, NotFoundException } from '@nestjs/common';
|
||||
import { AggregateRepository } from './aggregate.repository';
|
||||
import { VisualisierungenService } from '../visualisierungen/visualisierungen.service';
|
||||
|
||||
@@ -14,6 +14,12 @@ export class AggregateService {
|
||||
return this.repo.findAll(this.anlage)
|
||||
}
|
||||
|
||||
async getVisualisierungen(id: number) {
|
||||
const aggregat = await this.repo.findBy(this.anlage, { id });
|
||||
if (!aggregat) throw new NotFoundException('Aggregat nicht gefunden');
|
||||
return { aggregat, visualisierungen: await this.visuService.getVisuaWithXamlNames(aggregat.Id) };
|
||||
}
|
||||
|
||||
async getById(id:number){
|
||||
const agg = await this.repo.findBy(this.anlage,{id:id});
|
||||
if(!agg) return {success:false,error:"Aggregat nicht gefunden"}
|
||||
|
||||
Reference in new issue
Block a user