mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-15 01:01:20 +10:00
fix: update last accessed client on push
This commit is contained in:
@ -20,7 +20,8 @@ class SaveManager {
|
||||
gameId: string,
|
||||
userId: string,
|
||||
index: number,
|
||||
stream: IncomingMessage
|
||||
stream: IncomingMessage,
|
||||
clientId: string | undefined = undefined
|
||||
) {
|
||||
const save = await prisma.saveSlot.findUnique({
|
||||
where: {
|
||||
@ -84,6 +85,7 @@ class SaveManager {
|
||||
historyChecksums: {
|
||||
push: hash,
|
||||
},
|
||||
...(clientId && { lastUsedClientId: clientId }),
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user