ja sdeljal

This commit is contained in:
2025-10-14 20:17:18 +03:00
parent eb65eec9c0
commit f046999828
2 changed files with 16 additions and 1 deletions

View File

@ -76,4 +76,12 @@ export class ProjectService {
redisNodes: redisNodeId,
});
}
async getAllApiTokens(projectId: string) {
const project = await this.projectRepository.findOne({
where: { id: projectId },
relations: ["apiTokens"],
});
return project?.apiTokens || [];
}
}