Skip to content

Commit

Permalink
Remove depreacted delete logic in records service update meta (#2528)
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandro-bulgaris-qcif authored Dec 9, 2024
1 parent ef149bf commit 68253f4
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions typescript/api/services/RecordsService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -384,14 +384,6 @@ export module Services {
}
}

if (metadata.delete) {
//TODO - this code is deprecated and will be removed in next version
sails.log.error('RecordService - updateMeta - Delete record not allowed onSubmit record action');
updateResponse.success = false;
updateResponse.message = 'Delete record not allowed onSubmit record action';
return updateResponse;
}

let form = await FormsService.getFormByName(record.metaMetadata.form, true).toPromise()
record.metaMetadata.attachmentFields = form != undefined ? form.attachmentFields : [];

Expand Down

0 comments on commit 68253f4

Please sign in to comment.