mirror of
https://github.com/PretendoNetwork/account.git
synced 2026-08-20 01:34:05 -05:00
fix: make PNID.markForDeletion not async
This commit is contained in:
@@ -230,7 +230,7 @@ PNIDSchema.method('generateMiiImages', async function generateMiiImages(): Promi
|
||||
await uploadCDNAsset(config.s3.bucket, `${userMiiKey}/body.png`, miiStudioBodyImageData, 'public-read');
|
||||
});
|
||||
|
||||
PNIDSchema.method('markForDeletion', async function markForDeletion() {
|
||||
PNIDSchema.method('markForDeletion', function markForDeletion() {
|
||||
this.marked_for_deletion = true;
|
||||
this.hard_delete_time = new Date(Date.now() + (7 * 24 * 3600 * 1000)); // * 7 day grace period
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user