feat: add condition on create bookmark
parent
1827cdb592
commit
2038f0a74f
|
@ -25,7 +25,11 @@ export class ReportBookmarkService extends BaseReportService {
|
|||
|
||||
async create(body: CreateReportBookmarkDto) {
|
||||
const newPayload = this.injectDefaultColumnCreate(body);
|
||||
return await this.repo.save(newPayload);
|
||||
const result = await this.repo.save(newPayload);
|
||||
if (body.applied) {
|
||||
await this.appliedFalseBookmark(result.id);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
async getAll(query: GetReportBookmarkDto) {
|
||||
|
|
Loading…
Reference in New Issue