Skip to content

Commit

Permalink
fix pg migration
Browse files Browse the repository at this point in the history
  • Loading branch information
Alfagun74 committed Oct 26, 2023
1 parent 1cbd978 commit ce3a36c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# GameVault Backend Server Changelog

## 9.0.2

Recommended Gamevault App Version: `v1.7.3`

### Changes

- Fixed Socket-Secret migration for POSTGRES Users that i broke in v9.0.1.

## 9.0.1

Recommended Gamevault App Version: `v1.7.3`
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gamevault-backend",
"version": "9.0.1",
"version": "9.0.2",
"description": "the self-hosted gaming platform for drm-free games",
"author": "Alkan Alper, Schäfer Philip GbR / Phalcode",
"private": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export class SocketSecret1698013342889 implements MigrationInterface {
for (const user of users) {
const randomSocketSecret = randomBytes(32).toString("hex"); // 32 bytes for 64 hexadecimal characters
await queryRunner.query(
"UPDATE gamevault_user SET socket_secret = ? WHERE id = ?",
"UPDATE gamevault_user SET socket_secret = $1 WHERE id = $2",
[randomSocketSecret, user.id],
);
}
Expand Down

0 comments on commit ce3a36c

Please sign in to comment.