Skip to content

Commit 6697560

Browse files
authored
Release 16.2.0
2 parents 707dfdb + 2821553 commit 6697560

8 files changed

Lines changed: 178 additions & 175 deletions

File tree

.npm-upgrade.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
"reason": "Remove when https://github.com/winstonjs/logform/issues/336 is fixed"
2626
},
2727
"@types/node": {
28-
"versions": ">22.0.0",
29-
"reason": "LTS is 22"
28+
"versions": ">24.0.0",
29+
"reason": "LTS is 24"
3030
}
3131
}
3232
}

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# GameVault Backend Server Changelog
22

3+
## 16.2.0
4+
5+
### Changes
6+
7+
- Fixed usage of deprecated Node 22 property
8+
- Fixed Session Cleanup Algorithm failing to work on large servers.
9+
310
## 16.1.2
411

512
### Changes

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gamevault-backend",
3-
"version": "16.1.2",
3+
"version": "16.2.0",
44
"description": "the self-hosted gaming platform for drm-free games",
55
"author": "Alkan Alper, Schäfer Philip GbR / Phalcode",
66
"private": true,
@@ -99,7 +99,7 @@
9999
"@types/morgan": "^1.9.10",
100100
"@types/ms": "^2.1.0",
101101
"@types/multer": "^2.0.0",
102-
"@types/node": "^22.0.0",
102+
"@types/node": "^24.0.0",
103103
"@types/node-7z": "^2.1.11",
104104
"@types/passport-http": "^0.3.11",
105105
"@types/passport-jwt": "^4.0.1",

pnpm-lock.yaml

Lines changed: 160 additions & 160 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/modules/auth/authentication.service.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,13 @@ export class AuthenticationService implements OnModuleInit {
3838
);
3939
const cutoffDate = new Date(Date.now() - expiryTime * 3);
4040

41-
const result = await this.sessionRepository.remove(
42-
await this.sessionRepository.find({
43-
where: {
44-
expires_at: LessThan(cutoffDate),
45-
},
46-
}),
47-
);
41+
const result = await this.sessionRepository.delete({
42+
expires_at: LessThan(cutoffDate),
43+
});
4844

4945
this.logger.debug({
5046
message: "Cleaned up expired sessions",
51-
deletedCount: result.length,
47+
deletedCount: result.affected,
5248
cutoffDate,
5349
expiryTime,
5450
});

src/modules/games/files.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ export class FilesService implements OnApplicationBootstrap {
577577
entries
578578
.filter((e) => e.isFile() && this.isValidFilePath(e.name))
579579
.map(async (e) => {
580-
const path = join(e.path, e.name);
580+
const path = join(e.parentPath, e.name);
581581
const { size } = await stat(path);
582582
return { path, size: BigInt(size) };
583583
}),

src/modules/garbage-collection/media-garbage-collection.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ export class MediaGarbageCollectionService implements OnApplicationBootstrap {
231231
})
232232
)
233233
.filter((file) => file.isFile() && isUUID(file.name.substring(0, 35), 4))
234-
.map((file) => join(file.path, file.name));
234+
.map((file) => join(file.parentPath, file.name));
235235

236236
let removedCount = 0;
237237

src/plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export default async function loadPlugins() {
4242

4343
const plugins = await Promise.all(
4444
pluginModuleFiles.map(
45-
(file) => import(resolve(join(file.path, file.name))),
45+
(file) => import(resolve(join(file.parentPath, file.name))),
4646
),
4747
);
4848

0 commit comments

Comments
 (0)