u
This commit is contained in:
@@ -44,6 +44,8 @@ const STORE_NAMESPACES = [
|
||||
'attributevalue',
|
||||
'articleattributevalue',
|
||||
'categoryattributevalue',
|
||||
'modelconversation',
|
||||
'modelmessage',
|
||||
];
|
||||
|
||||
/**
|
||||
@@ -148,6 +150,11 @@ export async function getStore() {
|
||||
return connecting;
|
||||
}
|
||||
|
||||
export async function getProvider() {
|
||||
await getStore();
|
||||
return provider;
|
||||
}
|
||||
|
||||
export async function ensureConnection() {
|
||||
await getStore();
|
||||
}
|
||||
@@ -159,3 +166,4 @@ export async function closeStore() {
|
||||
store = undefined;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user