Something's wrong with my data!

hello guys
I can’t tell why it’s not either saving, or retrieving data properly, could you check out and tell me what’s wrong?

function module:SaveData()
	if self.ToSave then
		Datastore:UpdateAsync(self.Player.UserId, function(oldValue)
			local previousData = oldValue or {DataId = 0}
			if self.ToSave.DataId == previousData.DataId then
				self.ToSave.DataId += 1
				print('Successfully saved','old;',previousData.DataId,'new;',self.ToSave.DataId)
				return self.ToSave
			else
				print("COULDN'T SAVE BECAUSE:",self.ToSave.DataId,previousData.DataId)
				return nil
			end
		end)
	end
end

function module:GetData()
	local suc,result = pcall(Datastore.GetAsync,Datastore,self.Player.UserId)
	if (suc) then
		if (result) then
			return result
		end
		return self.ToSave
	end
end

IT saves properly, but when :GetData() is called, it seems it doesn’t works very well

To make sure it’s running in the first place, could you mind adding print("Running") at the top of all the functions?

They’re both running!
I can tell.

Is it returning nil when you call :GetData()?

Nevermind… I wasn’t giving properly the client data.