Skip to content

Commit

Permalink
Deploying to gh-pages from @ d86ea24 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
WojciechGrancow committed Sep 11, 2023
1 parent 59e4da1 commit 8d65f77
Show file tree
Hide file tree
Showing 76 changed files with 2,721 additions and 2,980 deletions.
14 changes: 1 addition & 13 deletions coverage.html
Original file line number Diff line number Diff line change
Expand Up @@ -7372,19 +7372,7 @@
<td>TeamService</td>
<td align="right" data-sort="0">
<span class="coverage-percent">0 %</span>
<span class="coverage-count">(0/3)</span>
</td>
</tr>
<tr class="low">
<td>
<!-- miscellaneous -->
<a href="./injectables/TeamUC.html">apps/server/src/modules/teams/uc/team.uc.ts</a>
</td>
<td>injectable</td>
<td>TeamUC</td>
<td align="right" data-sort="0">
<span class="coverage-percent">0 %</span>
<span class="coverage-count">(0/3)</span>
<span class="coverage-count">(0/4)</span>
</td>
</tr>
<tr class="low">
Expand Down
91 changes: 85 additions & 6 deletions injectables/TeamService.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ <h6><b>Methods</b></h6>
<span class="modifier">Async</span>
<a href="#deleteUserDataFromTeams" >deleteUserDataFromTeams</a>
</li>
<li>
<span class="modifier">Public</span>
<span class="modifier">Async</span>
<a href="#findUserDataFromTeams" >findUserDataFromTeams</a>
</li>
</ul>
</td>
</tr>
Expand Down Expand Up @@ -176,6 +181,78 @@ <h3 id="methods">
</tr>


<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="15"
class="link-to-prism">apps/server/src/modules/teams/service/team.service.ts:15</a></div>
</td>
</tr>


<tr>
<td class="col-md-4">

<div class="io-description">
<b>Parameters :</b>

<table class="params">
<thead>
<tr>
<td>Name</td>
<td>Type</td>
<td>Optional</td>
</tr>
</thead>
<tbody>
<tr>
<td>userId</td>
<td>
<code><a href="../miscellaneous/typealiases.html#EntityId" target="_self" >EntityId</a></code>
</td>

<td>
No
</td>


</tr>
</tbody>
</table>
</div>
<div>
</div>
<div class="io-description">
<b>Returns : </b> <code>Promise&lt;number&gt;</code>

</div>
<div class="io-description">

</div>
</td>
</tr>
</tbody>
</table>
<table class="table table-sm table-bordered">
<tbody>
<tr>
<td class="col-md-4">
<a name="findUserDataFromTeams"></a>
<span class="name">
<span class="modifier">Public</span>
<span class="modifier">Async</span>
<span ><b>findUserDataFromTeams</b></span>
<a href="#findUserDataFromTeams"><span class="icon ion-ios-link"></span></a>
</span>
</td>
</tr>
<tr>
<td class="col-md-4">
<span class="modifier-icon icon ion-ios-reset"></span>
<code>findUserDataFromTeams(userId: <a href="../undefineds/EntityId.html" target="_self">EntityId</a>)</code>
</td>
</tr>


<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="9"
Expand Down Expand Up @@ -217,7 +294,7 @@ <h3 id="methods">
<div>
</div>
<div class="io-description">
<b>Returns : </b> <code>Promise&lt;number&gt;</code>
<b>Returns : </b> <code><a href="../entitys/TeamEntity.html" target="_self" >Promise&lt;TeamEntity[]&gt;</a></code>

</div>
<div class="io-description">
Expand All @@ -233,19 +310,21 @@ <h3 id="methods">


<div class="tab-pane fade tab-source-code" id="source">
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { Injectable, InternalServerErrorException } from &#x27;@nestjs/common&#x27;;
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { Injectable } from &#x27;@nestjs/common&#x27;;
import { EntityId, TeamEntity } from &#x27;@shared/domain&#x27;;
import { TeamsRepo } from &#x27;@shared/repo&#x27;;

@Injectable()
export class TeamService {
constructor(private readonly teamsRepo: TeamsRepo) {}

public async deleteUserDataFromTeams(userId: EntityId): Promise&lt;number&gt; {
if (!userId) {
throw new InternalServerErrorException(&#x27;User id is missing&#x27;);
}
public async findUserDataFromTeams(userId: EntityId): Promise&lt;TeamEntity[]&gt; {
const teams &#x3D; await this.teamsRepo.findByUserId(userId);

return teams;
}

public async deleteUserDataFromTeams(userId: EntityId): Promise&lt;number&gt; {
const teams &#x3D; await this.teamsRepo.findByUserId(userId);

const updatedTeams: TeamEntity[] &#x3D; teams.map((team: TeamEntity) &#x3D;&gt; {
Expand Down
Loading

0 comments on commit 8d65f77

Please sign in to comment.