fix(approve): Fix approval check target

This commit is contained in:
FoxxMD
2022-02-09 16:41:39 -05:00
parent 8667fcdef3
commit ab355977ba

View File

@@ -36,7 +36,7 @@ export class ApproveAction extends Action {
}
// @ts-ignore
if (item.approved) {
if (targetItem.approved) {
const msg = `${target === 'self' ? 'Item' : 'Comment\'s parent Submission'} is already approved`;
this.logger.warn(msg);
return {