Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <[email protected]>
  • Loading branch information
Innei committed Nov 17, 2024
1 parent eee2bf8 commit f9a6772
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions apps/renderer/src/initialize/hydrate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { initializeDefaultUISettings } from "~/atoms/settings/ui"
import { appLog } from "~/lib/log"
import { EntryService, FeedService, FeedUnreadService, SubscriptionService } from "~/services"
import { InboxService } from "~/services/inbox"
import type { Hydable } from "~/services/interface"
import type { Hydratable } from "~/services/interface"
import { ListService } from "~/services/list"

export const setHydrated = (v: boolean) => {
Expand All @@ -17,7 +17,7 @@ export const hydrateDatabaseToStore = async () => {
async function hydrate() {
const now = Date.now()

const hydrates: Hydable[] = [
const hydrates: Hydratable[] = [
FeedService,
SubscriptionService,
FeedUnreadService,
Expand Down
4 changes: 2 additions & 2 deletions apps/renderer/src/services/entry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ import { entryActions, useEntryStore } from "~/store/entry"
import { BaseService } from "./base"
import { CleanerService } from "./cleaner"
import { EntryRelatedKey, EntryRelatedService } from "./entry-related"
import type { Hydable } from "./interface"
import type { Hydratable } from "./interface"

type EntryCollection = {
createdAt: string
}
class EntryServiceStatic extends BaseService<EntryModel> implements Hydable {
class EntryServiceStatic extends BaseService<EntryModel> implements Hydratable {
constructor() {
super(browserDB.entries)
}
Expand Down
4 changes: 2 additions & 2 deletions apps/renderer/src/services/feed-unread.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { browserDB } from "~/database"
import { feedUnreadActions } from "~/store/unread"

import type { Hydable } from "./interface"
import type { Hydratable } from "./interface"

const feedUnreadModel = browserDB.feedUnreads
class ServiceStatic implements Hydable {
class ServiceStatic implements Hydratable {
updateFeedUnread(list: [string, number][]) {
return feedUnreadModel.bulkPut(list.map(([feedId, count]) => ({ id: feedId, count })))
}
Expand Down
4 changes: 2 additions & 2 deletions apps/renderer/src/services/feed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import { feedActions } from "~/store/feed"

import { BaseService } from "./base"
import { CleanerService } from "./cleaner"
import type { Hydable } from "./interface"
import type { Hydratable } from "./interface"

type FeedModelWithId = FeedModel & { id: string }
class ServiceStatic extends BaseService<FeedModelWithId> implements Hydable {
class ServiceStatic extends BaseService<FeedModelWithId> implements Hydratable {
constructor() {
super(browserDB.feeds)
}
Expand Down
4 changes: 2 additions & 2 deletions apps/renderer/src/services/inbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import { inboxActions } from "~/store/inbox"

import { BaseService } from "./base"
import { CleanerService } from "./cleaner"
import type { Hydable } from "./interface"
import type { Hydratable } from "./interface"

class ServiceStatic extends BaseService<{ id: string }> implements Hydable {
class ServiceStatic extends BaseService<{ id: string }> implements Hydratable {
constructor() {
super(browserDB.inboxes)
}
Expand Down
2 changes: 1 addition & 1 deletion apps/renderer/src/services/interface.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export interface Hydable {
export interface Hydratable {
hydrate: () => Promise<void>
}
4 changes: 2 additions & 2 deletions apps/renderer/src/services/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import { listActions } from "~/store/list"

import { BaseService } from "./base"
import { CleanerService } from "./cleaner"
import type { Hydable } from "./interface"
import type { Hydratable } from "./interface"

class ServiceStatic extends BaseService<{ id: string }> implements Hydable {
class ServiceStatic extends BaseService<{ id: string }> implements Hydratable {
constructor() {
super(browserDB.lists)
}
Expand Down
4 changes: 2 additions & 2 deletions apps/renderer/src/services/subscription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import type { SubscriptionFlatModel } from "~/store/subscription"
import { subscriptionActions } from "~/store/subscription/store"

import { BaseService } from "./base"
import type { Hydable } from "./interface"
import type { Hydratable } from "./interface"

type SubscriptionModelWithId = SubscriptionFlatModel & { id: string }

class SubscriptionServiceStatic extends BaseService<SubscriptionModelWithId> implements Hydable {
class SubscriptionServiceStatic extends BaseService<SubscriptionModelWithId> implements Hydratable {
constructor() {
super(browserDB.subscriptions)
}
Expand Down

0 comments on commit f9a6772

Please sign in to comment.