feat(migration): frontend migration submissions -> opus-magnum
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { defineStore } from 'pinia'
|
||||
import { ref, computed } from 'vue'
|
||||
import { submissionsApiListPuzzles } from '@/api'
|
||||
import { opusMagnumApiListPuzzles } from '@/api'
|
||||
import type { SteamCollectionItem } from '@/types'
|
||||
|
||||
export const usePuzzlesStore = defineStore('puzzles', () => {
|
||||
@@ -38,7 +38,7 @@ export const usePuzzlesStore = defineStore('puzzles', () => {
|
||||
isLoading.value = true
|
||||
error.value = ''
|
||||
|
||||
const response = await submissionsApiListPuzzles()
|
||||
const response = await opusMagnumApiListPuzzles()
|
||||
if (response.error) {
|
||||
error.value = String(response.error)
|
||||
console.error('Failed to load puzzles:', response.error)
|
||||
|
||||
Reference in New Issue
Block a user