fix(projects): 修复若干问题。
This commit is contained in:
@ -26,7 +26,8 @@ export class ProjectsService extends BaseDbService<Project> {
|
||||
|
||||
async update(id: string, dto: CreateProjectInput) {
|
||||
await this.isDuplicateEntityForUpdate(id, dto);
|
||||
await this.repository.update({ id }, dto);
|
||||
const old = await this.findOne(id);
|
||||
return await this.repository.save(this.repository.merge(old, dto));
|
||||
}
|
||||
|
||||
async remove(id: string) {
|
||||
|
Reference in New Issue
Block a user