lint fix wip
This commit is contained in:
parent
64c94b6679
commit
3c888e375a
@ -169,8 +169,8 @@ export async function publishSeries(params: {
|
|||||||
const {category} = params
|
const {category} = params
|
||||||
requireCategory(category)
|
requireCategory(category)
|
||||||
|
|
||||||
// Map category to new system (not used but kept for future reference)
|
// Map category to new system
|
||||||
const _newCategory = category === 'science-fiction' ? 'sciencefiction' : 'research'
|
const newCategory = category === 'science-fiction' ? 'sciencefiction' : 'research'
|
||||||
|
|
||||||
// Generate hash ID from series data
|
// Generate hash ID from series data
|
||||||
const hashId = await generateSeriesHashId({
|
const hashId = await generateSeriesHashId({
|
||||||
@ -258,8 +258,8 @@ async function buildSeriesEvent(
|
|||||||
content: string
|
content: string
|
||||||
tags: string[][]
|
tags: string[][]
|
||||||
}> {
|
}> {
|
||||||
// Map category to new system (not used but kept for future reference)
|
// Map category to new system
|
||||||
const _newCategory = category === 'science-fiction' ? 'sciencefiction' : 'research'
|
const newCategory = category === 'science-fiction' ? 'sciencefiction' : 'research'
|
||||||
|
|
||||||
// Generate hash ID from series data
|
// Generate hash ID from series data
|
||||||
const hashId = await generateSeriesHashId({
|
const hashId = await generateSeriesHashId({
|
||||||
@ -324,8 +324,8 @@ export async function publishReview(params: {
|
|||||||
const {category} = params
|
const {category} = params
|
||||||
requireCategory(category)
|
requireCategory(category)
|
||||||
|
|
||||||
// Map category to new system (not used but kept for future reference)
|
// Map category to new system
|
||||||
const _newCategory = category === 'science-fiction' ? 'sciencefiction' : 'research'
|
const newCategory = category === 'science-fiction' ? 'sciencefiction' : 'research'
|
||||||
|
|
||||||
// Generate hash ID from review data
|
// Generate hash ID from review data
|
||||||
const { generateReviewHashId } = await import('./hashIdGenerator')
|
const { generateReviewHashId } = await import('./hashIdGenerator')
|
||||||
@ -417,8 +417,8 @@ async function buildReviewEvent(
|
|||||||
content: string
|
content: string
|
||||||
tags: string[][]
|
tags: string[][]
|
||||||
}> {
|
}> {
|
||||||
// Map category to new system (not used but kept for future reference)
|
// Map category to new system
|
||||||
const _newCategory = category === 'science-fiction' ? 'sciencefiction' : 'research'
|
const newCategory = category === 'science-fiction' ? 'sciencefiction' : 'research'
|
||||||
|
|
||||||
// Generate hash ID from review data
|
// Generate hash ID from review data
|
||||||
const { generateReviewHashId } = await import('./hashIdGenerator')
|
const { generateReviewHashId } = await import('./hashIdGenerator')
|
||||||
|
|||||||
@ -4,7 +4,9 @@ import { PLATFORM_SERVICE } from './platformConfig'
|
|||||||
import { generatePurchaseHashId, generateReviewTipHashId, generateSponsoringHashId } from './hashIdGenerator'
|
import { generatePurchaseHashId, generateReviewTipHashId, generateSponsoringHashId } from './hashIdGenerator'
|
||||||
import { buildObjectId } from './urlGenerator'
|
import { buildObjectId } from './urlGenerator'
|
||||||
import type { Event, EventTemplate } from 'nostr-tools'
|
import type { Event, EventTemplate } from 'nostr-tools'
|
||||||
import type { Purchase } from '@/types/nostr'
|
import { finalizeEvent } from 'nostr-tools'
|
||||||
|
import { hexToBytes } from 'nostr-tools/utils'
|
||||||
|
import type { Purchase, ReviewTip, Sponsoring } from '@/types/nostr'
|
||||||
import { writeOrchestrator } from './writeOrchestrator'
|
import { writeOrchestrator } from './writeOrchestrator'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user