Error while attempting to update player data with PlayFab API

Hello! I am making a Button Simulator game and right now I am trying to make the saving/loading system. I am using PlayFab API. I am using the UpdateUserData and GetUserData for this, and whenever I attempt to run the function, I get this error:

ServerScriptService.PlayerData.PlayFabManager:89: attempt to call a table value

Here is my code:

function PlayFabManager.UpdatePlayerData(userId: number, dataName: string, value: string)
	PlayFabServerAPI.UpdateUserData(
		{
			{dataName, value}
		},
		
		function(result: table)
			print("✅ | [PlayFabManager]: Successfully updated the value "..dataName.." to the value "..value.." for the player "..userId)
		end,

		function(error: table)
			error("❌ | [PlayFabManager]: Failed to update the value "..dataName.." to the value "..value.." for the player "..userId..". Error: "..error.errorMessage)
		end
	)
end