Skip to content

Commit

Permalink
Update MongoDB.luau
Browse files Browse the repository at this point in the history
  • Loading branch information
nightcycle authored Sep 11, 2024
1 parent c553b8c commit 317ead1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/StorageProviders/MongoDB.luau
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ function MongoDB:InsertMany(
Headers = netResponse.headers,
StatusCode = netResponse.statusCode,
StatusMessage = netResponse.statusMessage,
Success = netResponse.success,
Success = netResponse.success or netResponse.statusCode == 201, -- 201 also means it worked but will return as false
}
else
local encodedPayload = game:GetService("HttpService"):JSONEncode(payload)
Expand Down

0 comments on commit 317ead1

Please sign in to comment.