docs
This commit is contained in:
@@ -39,6 +39,11 @@ export class HelperService {
|
||||
return keys;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sucht das System eines Schlüssels und gibt es als Promise zurück
|
||||
* @param key key
|
||||
* @returns system: KeySystem
|
||||
*/
|
||||
async getSystemOfKey(key: Key): Promise<KeySystem> {
|
||||
const k = await this.keyRepo.findOne({
|
||||
where: { id: key.id },
|
||||
@@ -50,7 +55,12 @@ export class HelperService {
|
||||
return found.system;
|
||||
}
|
||||
|
||||
async getSystemOCylinder(cylinder: Cylinder): Promise<KeySystem> {
|
||||
/**
|
||||
* Gibt das System eines Zylinders und gibt es als Promise zurück
|
||||
* @param cylinder Zylinder
|
||||
* @returns Promise<KeySystem>
|
||||
*/
|
||||
async getSystemOfCylinder(cylinder: Cylinder): Promise<KeySystem> {
|
||||
const k = await this.cylinderRepository.findOne({
|
||||
where: { id: cylinder.id },
|
||||
relations: ['system'],
|
||||
|
||||
Reference in New Issue
Block a user