mirror of
https://github.com/nolen777/eagle0.git
synced 2026-07-28 22:35:42 +00:00
Scope Postgres save exports to a connection (#8469)
This commit is contained in:
@@ -77,7 +77,7 @@ class PostgresHistory private[service] (
|
||||
dbFile: java.io.File,
|
||||
startingState: GameState,
|
||||
finalState: GameState
|
||||
): SqliteHistory = {
|
||||
): SqliteHistory = withDbLock {
|
||||
val sqlite = SqliteHistory.createForSaveExport(dbFile, startingState)
|
||||
sqlite.importSaveExportRowsFromJdbc(connection, finalState)
|
||||
sqlite
|
||||
|
||||
Reference in New Issue
Block a user