move environment module to integrations

This commit is contained in:
Philipinho
2024-03-21 20:09:25 +00:00
parent 51b9808382
commit 186c4f5f5c
16 changed files with 20 additions and 30 deletions

View File

@ -15,21 +15,6 @@ export class UserService {
return this.userRepository.findById(userId);
}
async getUserInstance(userId: string): Promise<any> {
const user: User = await this.userRepository.findOne({
relations: ['workspace'],
where: {
id: userId,
},
});
if (!user) {
throw new NotFoundException('User not found');
}
return user;
}
async update(userId: string, updateUserDto: UpdateUserDto) {
const user = await this.userRepository.findById(userId);
if (!user) {