0
0
mirror of https://github.com/sp-tarkov/server.git synced 2025-02-13 05:30:43 -05:00

Adopt orphaned items sent with the mail service

This commit is contained in:
Archangel 2024-12-31 13:23:49 +01:00
parent 828dcf83ab
commit 39b95ac2fa

View File

@ -174,7 +174,10 @@ export class MailSendService {
// Add items to message
if (items.length > 0) {
details.items = items;
const rootItemParentID = this.hashUtil.generate();
details.items = this.itemHelper.adoptOrphanedItems(rootItemParentID, items);
details.itemsMaxStorageLifetimeSeconds = maxStorageTimeSeconds ?? 172800; // 48 hours if no value supplied
}