Skip to content

Commit

Permalink
fix: storage keys
Browse files Browse the repository at this point in the history
  • Loading branch information
Valexr committed May 8, 2024
1 parent cde96c5 commit 873af99
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lib/dates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { quotes } from './quotes';

export const dates = createDates()
function createDates() {
const { subscribe, get, set, update } = cacheable<Array<StartDate>>('CountyDates', [], true)
const { subscribe, get, set, update } = cacheable<Array<StartDate>>('County_Dates', [], true)
return {
subscribe, get, set, update,
add(date: StartDate) {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/images.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const images = createImages()

function createImages() {
type API = [string, number, string]
const { subscribe, set, get, update } = cacheable<Array<API>>('County-Images', [], true)
const { subscribe, set, get, update } = cacheable<Array<API>>('County_Images', [], true)

async function load() {
if (!get().length) {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/quotes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { locale, random } from "./utils";

export const quotes = createQuotes()
function createQuotes() {
const { subscribe, set, get, update } = cacheable<Quote[]>('County_Quotes', [['', '']], true)
const { subscribe, set, get, update } = cacheable<Quote[]>('County_Quotes', [], true)
return {
subscribe, set, get, update,
async load() {
Expand Down

0 comments on commit 873af99

Please sign in to comment.