Major update: ESG, KPIs, metas, alertas, auditoria, documentos, importação, relatórios, subcategorias, dashboard orçamentos
This commit is contained in:
@@ -22,6 +22,7 @@ export class DemandasService {
|
||||
findOne(id: string) { return this.repo.findOne({ where: { id }, relations: ['itens_linha'] }); }
|
||||
create(data: Partial<Demanda>) { return this.repo.save(data); }
|
||||
async update(id: string, data: Partial<Demanda>) { await this.repo.update(id, data); return this.findOne(id); }
|
||||
async remove(id: string) { await this.repo.delete(id); return { deleted: true }; }
|
||||
|
||||
async updateStatus(id: string, status: string) {
|
||||
await this.repo.update(id, { status });
|
||||
|
||||
Reference in New Issue
Block a user