fix: cau #217599
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Javi Gallego 2024-09-10 09:08:43 +02:00
parent f8b3db7023
commit 1c0e148233
1 changed files with 2 additions and 1 deletions

View File

@ -320,7 +320,8 @@ module.exports = Self => {
// Credit management changes
if (changes?.rating >= 0 || changes?.recommendedCredit >= 0)
if ((changes?.rating != null && changes.rating >= 0)
|| (changes?.recommendedCredit != null && changes.recommendedCredit >= 0))
await Self.changeCreditManagement(ctx, finalState, changes);
const oldInstance = {};