Linux sg77.dns-private.com 5.14.0-503.40.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Mon May 5 06:06:04 EDT 2025 x86_64
LiteSpeed
Server IP : 135.181.230.13 & Your IP : 216.73.217.69
Domains :
Cant Read [ /etc/named.conf ]
User : pilasate
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
pilasate /
test /
dist /
modules /
lookups /
Delete
Unzip
Name
Size
Permission
Date
Action
dto
[ DIR ]
drwxrwxrwx
2025-03-22 07:46
entities
[ DIR ]
drwxrwxrwx
2025-03-22 07:46
lookups.controller.d.ts
1.12
KB
-rw-rw-rw-
2025-03-22 07:46
lookups.controller.js
9.66
KB
-rw-rw-rw-
2025-03-22 07:46
lookups.controller.js.map
5.26
KB
-rw-rw-rw-
2025-03-22 07:46
lookups.module.d.ts
39
B
-rw-rw-rw-
2025-03-22 07:46
lookups.module.js
1.45
KB
-rw-rw-rw-
2025-03-22 07:46
lookups.module.js.map
482
B
-rw-rw-rw-
2025-03-22 07:46
lookups.service.d.ts
1.14
KB
-rw-rw-rw-
2025-03-22 07:46
lookups.service.js
3.65
KB
-rw-rw-rw-
2025-03-22 07:46
lookups.service.js.map
2.32
KB
-rw-rw-rw-
2025-03-22 07:46
Save
Rename
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var __param = (this && this.__param) || function (paramIndex, decorator) { return function (target, key) { decorator(target, key, paramIndex); } }; Object.defineProperty(exports, "__esModule", { value: true }); exports.LookupsService = void 0; const common_1 = require("@nestjs/common"); const typeorm_1 = require("@nestjs/typeorm"); const typeorm_2 = require("typeorm"); const lookup_entity_1 = require("./entities/lookup.entity"); const lookup_value_entity_1 = require("./entities/lookup-value.entity"); let LookupsService = class LookupsService { lookupRepository; lookupValueRepository; constructor(lookupRepository, lookupValueRepository) { this.lookupRepository = lookupRepository; this.lookupValueRepository = lookupValueRepository; } async findAll() { return this.lookupRepository.find({ relations: ['lookupValues'] }); } async createLookup(createLookupDto) { const lookup = this.lookupRepository.create(createLookupDto); return this.lookupRepository.save(lookup); } async updateLookup(id, updateLookupDto) { const lookup = await this.lookupRepository.findOne({ where: { id } }); if (!lookup) throw new Error('Lookup not found'); Object.assign(lookup, updateLookupDto); return this.lookupRepository.save(lookup); } async deleteLookup(id) { const lookup = await this.lookupRepository.findOne({ where: { id } }); if (!lookup) return false; await this.lookupRepository.delete(id); return true; } async findAllLookupValues(id) { return this.lookupValueRepository.find({ where: { lookup_id: id }, relations: ['lookup'] }); } async createLookupValue(createLookupValueDto) { const lookupValue = this.lookupValueRepository.create(createLookupValueDto); return this.lookupValueRepository.save(lookupValue); } async updateLookupValue(id, updateLookupValueDto) { const lookupValue = await this.lookupValueRepository.findOne({ where: { id } }); if (!lookupValue) throw new Error('Lookup value not found'); Object.assign(lookupValue, updateLookupValueDto); return this.lookupValueRepository.save(lookupValue); } async deleteLookupValue(id) { const lookupValue = await this.lookupValueRepository.findOne({ where: { id } }); if (!lookupValue) return false; await this.lookupValueRepository.delete(id); return true; } }; exports.LookupsService = LookupsService; exports.LookupsService = LookupsService = __decorate([ (0, common_1.Injectable)(), __param(0, (0, typeorm_1.InjectRepository)(lookup_entity_1.Lookup)), __param(1, (0, typeorm_1.InjectRepository)(lookup_value_entity_1.LookupValue)), __metadata("design:paramtypes", [typeorm_2.Repository, typeorm_2.Repository]) ], LookupsService); //# sourceMappingURL=lookups.service.js.map