mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 01:12:19 +00:00
cache get by host
This commit is contained in:
@@ -68,7 +68,7 @@ const systemService = async () => {
|
||||
|
||||
export async function getInstanceByHost(host: string) {
|
||||
const system = await systemService();
|
||||
return system
|
||||
const callback = system
|
||||
.listInstances(
|
||||
{
|
||||
queries: [
|
||||
@@ -91,6 +91,8 @@ export async function getInstanceByHost(host: string) {
|
||||
|
||||
return resp.result[0];
|
||||
});
|
||||
|
||||
return useCache ? cacheWrapper(callback) : callback;
|
||||
}
|
||||
|
||||
export async function getBrandingSettings({
|
||||
|
||||
Reference in New Issue
Block a user