fix: openai cache lock (#2841)

This commit is contained in:
HugoCasa
2023-12-12 15:52:04 +01:00
committed by GitHub
parent 6d194e8e66
commit 107bfa7252
2 changed files with 10 additions and 13 deletions
@@ -252,10 +252,10 @@
gitSyncResourcePath = settings.git_sync?.git_repo_resource_path?.replace('$res:', '')
// check openai_client_credentials_oauth
const resourceTypes = await ResourceService.listResourceTypeNames({
workspace: $workspaceStore!
usingOpenaiClientCredentialsOauth = await ResourceService.existsResourceType({
workspace: $workspaceStore!,
path: 'openai_client_credentials_oauth'
})
usingOpenaiClientCredentialsOauth = resourceTypes.includes('openai_client_credentials_oauth')
}
$: {