Skip to content

Commit

Permalink
Save boards asychronously
Browse files Browse the repository at this point in the history
  • Loading branch information
sheepish12 committed Dec 30, 2021
1 parent 9de3f7a commit ee37a6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/Persistence.lua
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function Persistence.Init()
for _, board in ipairs(boardsClose) do
local persistId = board:FindFirstChild("PersistId")
if persistId and persistId:IsA("IntValue") then
Persistence.Store(board, keyForBoard(board))
task.spawn(Persistence.Store, board, keyForBoard(board))
end
end
end)
Expand Down Expand Up @@ -252,4 +252,4 @@ function Persistence.Store(board, boardKey)
--print("Persistence: Successfully stored board " .. boardKey)
end

return Persistence
return Persistence

0 comments on commit ee37a6e

Please sign in to comment.