fix: only update access level in PNID.scrub when above 0

This commit is contained in:
Jonathan Barrow 2026-01-21 17:15:53 -05:00
parent 7f33bf4bd1
commit 0a0cf13e84
No known key found for this signature in database
GPG Key ID: 2A7DAA6DED5A77E5

View File

@ -298,7 +298,9 @@ PNIDSchema.method('scrub', async function scrub() {
this.deleted = true;
this.marked_for_deletion = false;
this.access_level = 0;
if (this.access_level > 0) {
this.access_level = 0;
}
this.server_access_level = 'prod';
this.creation_date = '';
this.birthdate = '';