Skip to content

destillationapp-frontend v0.1.0


destillationapp-frontend / helpers/settingsFunctions / updateListSettings

Function: updateListSettings()

updateListSettings(apolloClient, key, value): Promise<string | boolean>

Defined in: helpers/settingsFunctions.ts:46

Updates the list length setting for the user.

Parameters

apolloClient

ApolloClient<NormalizedCacheObject>

The Apollo Client instance.

key

string

The list length setting key to update.

value

number

The new list length value.

Returns

Promise<string | boolean>

Returns true if successful, "Unauthorized" if unauthorized, or false on error.