1
0
forked from Yara724/api

Initial commit after migration to gitea

This commit is contained in:
2026-01-18 11:27:43 +03:30
parent a21039410c
commit ea4b8eb543
196 changed files with 45567 additions and 9 deletions

View File

@@ -0,0 +1,17 @@
import { Injectable } from "@nestjs/common";
import { UserDbService } from "src/users/entities/db-service/user.db.service";
import { ProfileUserRs } from "./dto/user/profile.dto";
@Injectable()
export class ProfileService {
constructor(private readonly userDbService: UserDbService) {}
async getProfileDetail(username: string) {
const userDetail = await this.userDbService.findOne({ username });
return new ProfileUserRs(userDetail, {});
}
async updateProfile(username: string, update) {
return await this.userDbService.findOneAndUpdate({ username }, update);
}
}