Fix root hashing due to missing root dirs

This commit is contained in:
Misode
2024-11-21 01:30:42 +01:00
parent 4bc6e758da
commit 5cfd17a107
4 changed files with 9 additions and 6 deletions

View File

@@ -2,7 +2,7 @@ import type { ComponentChildren } from 'preact'
import { createContext } from 'preact'
import { useCallback, useContext, useEffect, useMemo, useState } from 'preact/hooks'
import type { VersionId } from '../services/index.js'
import { ROOT_URI, SpyglassClient } from '../services/Spyglass.js'
import { DRAFTS_URI, SpyglassClient } from '../services/Spyglass.js'
import { Store } from '../Store.js'
export type ProjectMeta = {
@@ -37,7 +37,7 @@ export const DRAFT_PROJECT: ProjectMeta = {
namespace: 'draft',
storage: {
type: 'indexeddb',
rootUri: `${ROOT_URI}drafts/`,
rootUri: DRAFTS_URI,
},
}