ja sdeljal
This commit is contained in:
@ -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 || [];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user