Cleaned code
This commit is contained in:
+5
-7
@@ -6,13 +6,11 @@
|
|||||||
<synchronize>true</synchronize>
|
<synchronize>true</synchronize>
|
||||||
<jdbc-driver>com.jetbrains.jdbc.sqlserver.SqlServerDriver</jdbc-driver>
|
<jdbc-driver>com.jetbrains.jdbc.sqlserver.SqlServerDriver</jdbc-driver>
|
||||||
<jdbc-url>Server=romaric-thibault.fr,1433</jdbc-url>
|
<jdbc-url>Server=romaric-thibault.fr,1433</jdbc-url>
|
||||||
<working-dir>$ProjectFileDir$</working-dir>
|
<jdbc-additional-properties>
|
||||||
</data-source>
|
<property name="com.intellij.clouds.kubernetes.db.host.port" />
|
||||||
<data-source source="LOCAL" name="@romaric-thibault.fr [2]" uuid="ca3f05f9-1785-497e-bb80-adf40963d717">
|
<property name="com.intellij.clouds.kubernetes.db.enabled" value="false" />
|
||||||
<driver-ref>sqlserver.jb</driver-ref>
|
<property name="com.intellij.clouds.kubernetes.db.container.port" />
|
||||||
<synchronize>true</synchronize>
|
</jdbc-additional-properties>
|
||||||
<jdbc-driver>com.jetbrains.jdbc.sqlserver.SqlServerDriver</jdbc-driver>
|
|
||||||
<jdbc-url>Server=romaric-thibault.fr,1433</jdbc-url>
|
|
||||||
<working-dir>$ProjectFileDir$</working-dir>
|
<working-dir>$ProjectFileDir$</working-dir>
|
||||||
</data-source>
|
</data-source>
|
||||||
</component>
|
</component>
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="db-tree-configuration">
|
<component name="db-tree-configuration">
|
||||||
<option name="data" value="---------------------------------------- 1:0:d39cb28a-f071-4fe6-bb03-b2350028b821 2:0:ca3f05f9-1785-497e-bb80-adf40963d717 " />
|
<option name="data" value="---------------------------------------- 1:0:d39cb28a-f071-4fe6-bb03-b2350028b821 " />
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
||||||
@@ -38,7 +38,7 @@ public class PatchProofEndpoint(
|
|||||||
|
|
||||||
if (userRandomChallenge.Proof is not null)
|
if (userRandomChallenge.Proof is not null)
|
||||||
{
|
{
|
||||||
await Send.StringAsync("Vous avez déjà déposé une preuve",400, cancellation:ct);
|
await Send.StringAsync("Vous avez déjà déposé une preuve", 400, cancellation: ct);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -50,7 +50,7 @@ public class PatchProofEndpoint(
|
|||||||
}
|
}
|
||||||
|
|
||||||
mapper.Map(req, userRandomChallenge);
|
mapper.Map(req, userRandomChallenge);
|
||||||
user.Score++; // 1pts bonus
|
user.Score++; // 1pts bonus
|
||||||
|
|
||||||
await userRandomChallengesRepository.SaveChangesAsync(ct);
|
await userRandomChallengesRepository.SaveChangesAsync(ct);
|
||||||
await Send.NoContentAsync(ct);
|
await Send.NoContentAsync(ct);
|
||||||
|
|||||||
Reference in New Issue
Block a user