refs #5063 deleted changes in item hook
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Alexandre Riera 2023-02-24 10:40:24 +01:00
parent 9da3593dff
commit 698a3396fc
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ module.exports = Self => {
Self.validatesPresenceOf('originFk', {message: 'Cannot be blank'});
Self.observe('before save', async function(ctx) {
if (ctx.isNewInstance) await Self.availableId(ctx);
await Self.availableId(ctx);
});
Self.availableId = async function(ctx) {