fix(link-modules): recreate dismissed link (#6764)

* fix(link-modules): recreate dismissed link

* rm type

---------

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
This commit is contained in:
Carlos R. L. Rodrigues
2024-03-20 15:12:48 -03:00
committed by GitHub
parent eefde48eef
commit 60070fb65f
4 changed files with 42 additions and 0 deletions

View File

@@ -84,6 +84,13 @@ export function generateEntity(
filters: {
[SoftDeletableFilterKey]: mikroOrmSoftDeletableFilterOptions,
},
hooks: {
beforeUpdate: [
(args) => {
args.entity.updated_at = new Date()
},
],
},
indexes: [
{
properties: ["id"],