mirror of
https://github.com/PretendoNetwork/account.git
synced 2026-03-21 17:44:49 -05:00
fix: only update access level in PNID.scrub when above 0
This commit is contained in:
parent
7f33bf4bd1
commit
0a0cf13e84
|
|
@ -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 = '';
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user