forked from cerc-io/snowballtools-base
Implement routes for project tabs (#63)
* Add routes to project tabs * remove react tabs and use material tailwind component instead * Refactor code to move project tab panels in pages directory * Remove unused function from database class * Refactor routes for project tabs
This commit is contained in:
@@ -83,24 +83,6 @@ export class Database {
|
||||
return userOrgs;
|
||||
}
|
||||
|
||||
async getProjectsByOrganizationId (organizationId: string): Promise<Project[]> {
|
||||
const projectRepository = this.dataSource.getRepository(Project);
|
||||
|
||||
const projects = await projectRepository.find({
|
||||
relations: {
|
||||
organization: true,
|
||||
owner: true
|
||||
},
|
||||
where: {
|
||||
organization: {
|
||||
id: organizationId
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
return projects;
|
||||
}
|
||||
|
||||
async getProjectById (projectId: string): Promise<Project | null> {
|
||||
const projectRepository = this.dataSource.getRepository(Project);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user