mirror of
https://github.com/PretendoNetwork/account.git
synced 2026-04-26 16:17:31 -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.deleted = true;
|
||||||
this.marked_for_deletion = false;
|
this.marked_for_deletion = false;
|
||||||
this.access_level = 0;
|
if (this.access_level > 0) {
|
||||||
|
this.access_level = 0;
|
||||||
|
}
|
||||||
this.server_access_level = 'prod';
|
this.server_access_level = 'prod';
|
||||||
this.creation_date = '';
|
this.creation_date = '';
|
||||||
this.birthdate = '';
|
this.birthdate = '';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user