From b56468d3aac68d57263f84e5622193ab51bbb82e Mon Sep 17 00:00:00 2001 From: guillermo Date: Fri, 7 Feb 2025 15:05:04 +0100 Subject: [PATCH] fix: refs #7024 Test --- modules/entry/back/models/specs/entry.spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/entry/back/models/specs/entry.spec.js b/modules/entry/back/models/specs/entry.spec.js index 15a8202c4d..e468e08715 100644 --- a/modules/entry/back/models/specs/entry.spec.js +++ b/modules/entry/back/models/specs/entry.spec.js @@ -29,9 +29,9 @@ describe('entry_isEditable trigger', () => { }); async function prepareEntry(isBooked, typeFk) { - let newCreated = Date.vnNew(); + const companyFk = 69; await entry.updateAttributes({isBooked, typeFk}, options); - await entry.updateAttributes({dated: newCreated}, options); + await entry.updateAttributes({companyFk}, options); } it('should throw an error when entry is booked and typeFk is null', async() => {