Skip to content

:asyncGetProfile doesnt look for a changed dataPrefix #10

@BustedAlien

Description

@BustedAlien

Orig:

function DataServiceServer.asyncGetProfile(self: DataServiceServer, userId: number | string): Profile?
	local profileKey = DATA_PREFIX .. tostring(userId)
	return self.playerStore:GetAsync(profileKey)
end

Fixed:

function DataServiceServer.asyncGetProfile(self: DataServiceServer, userId: number | string): Profile?
	local profileKey = (self.options.profileStoreDataPrefix or DATA_PREFIX) .. tostring(userId)
	return self.playerStore:GetAsync(profileKey)
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions