Fix no-changes being incorrectly checked

This commit is contained in:
ShootingStar91
2024-08-28 13:46:35 +03:00
parent 790d0d6a9f
commit 27d76efd45
@@ -116,7 +116,7 @@ export class WriteHandler extends DatabaseHandler {
}
async logUpdatesAndComplete(comment: string, references: Reference[], authorizer: string) {
if (this.writeList.length === 0) {
if (this.writeList.flatMap(writeItem => writeItem.items).length === 0) {
logger.info(`No changes detected, skipping logging.`)
return
}