Skip to content

Commit b3ffb68

Browse files
committed
try to fix
1 parent caeb284 commit b3ffb68

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

Company/KPIs/Controllers/KPIsController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ public async Task<HttpResponseData> CreateKPI(
291291

292292
[Function("UpdateKPI")]
293293
public async Task<HttpResponseData> UpdateKPI(
294-
[HttpTrigger(AuthorizationLevel.Function, "put", Route = "kpis/byid/{id}")] HttpRequestData req,
294+
[HttpTrigger(AuthorizationLevel.Function, "put", Route = "kpis/{kpiid}")] HttpRequestData req,
295295
int id)
296296
{
297297
var principal = new RetrieveToken().GetPrincipalFromRequest(req);

Company/KPIs/Models/KPIs.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public KPI()
2121
DepartmentKPIs = new List<DepartmentKPI>();
2222
}
2323

24-
public KPI(int id, string name, string description, string unit, string value1, string value2)
24+
public KPI(int id, string name, string description, string unit, string value1, string value2, bool byproduct = true)
2525
{
2626
if (string.IsNullOrEmpty(name))
2727
throw new ArgumentException("KPI name cannot be null or empty.");
@@ -31,6 +31,7 @@ public KPI(int id, string name, string description, string unit, string value1,
3131
Unit = unit;
3232
Value_1 = value1;
3333
Value_2 = value2;
34+
ByProduct = byproduct;
3435
DepartmentKPIs = new List<DepartmentKPI>();
3536
}
3637

Company/Services/Interfaces.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ public interface IKPIService
2929
Task<IEnumerable<KPIDTO>> GetKPIsByDepartmentIdAsync(int departmentId);
3030
Task<KPI> CreateKPIAsync(KPI kpi);
3131
Task<KPI> UpdateKPIAsync(int id, KPI kpi, int changedByUserId);
32-
3332
Task DeleteKPIAsync(int id);
34-
3533
Task<KPI> UpdateKPIFieldsAsync(int id, UpdateKPIDTO updateDto, int changedByUserId);
3634
}
3735

User/Email/EmailTemplates.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public static string VerificationEmail(string link, string code)
1616
public static string PasswordResetEmail(string link, string code)
1717
{
1818
return $@"
19-
<p>Clique no link para resetar a sua senha:</p>
19+
<p>Clique no link para alterar a sua password:</p>
2020
Código: {code}
2121
<br><br>
2222
<a href=""{link}"">{link}</a>

0 commit comments

Comments
 (0)