mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-02 13:06:08 +02:00
refactor queryRequest
This commit is contained in:
@@ -19,12 +19,12 @@ import {
|
||||
ActivityType,
|
||||
StatusDisplayType
|
||||
} from '../../shared/constants/discord';
|
||||
import { queryRequest } from '../../api';
|
||||
import { useGameLogStore } from '../gameLog';
|
||||
import { useGameStore } from '../game';
|
||||
import { useLocationStore } from '../location';
|
||||
import { useUpdateLoopStore } from '../updateLoop';
|
||||
import { useUserStore } from '../user';
|
||||
import { worldRequest } from '../../api';
|
||||
|
||||
import configRepository from '../../service/config';
|
||||
|
||||
@@ -221,7 +221,7 @@ export const useDiscordPresenceSettingsStore = defineStore(
|
||||
groupAccessName: ''
|
||||
};
|
||||
try {
|
||||
const args = await worldRequest.getCachedWorld({
|
||||
const args = await queryRequest.fetch('world', {
|
||||
worldId: L.worldId
|
||||
});
|
||||
state.lastLocationDetails.worldName = args.ref.name;
|
||||
|
||||
Reference in New Issue
Block a user