Skip to content

Commit

Permalink
fix: windows paths cannot use colons
Browse files Browse the repository at this point in the history
  • Loading branch information
darraghoriordan committed Oct 2, 2023
1 parent c61be68 commit 54cad69
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/MarketingWeek/MarketingWeekScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const faqs = [
id: 3,
question: 'How does it work?',
answer:
"Based on the configuration you provided for your Git repositories and other tools, this tool will scan your work and with OpenAI's products, it will compile summaries of what you achieved.",
"This tool will take all the building work you did for a give date and summarize what you achieved. Then you can use the example social media posts and summaries as starting points for your marketing. Don't use the generated posts directly, people can tell it's fake. Use the output for inspiration. I HIGHLY recommend rewriting the posts in your own voice.",
},
{
id: 4,
Expand Down
3 changes: 2 additions & 1 deletion src/electron/marketingWeek/services/dev-history-cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import fs from 'fs'
import fsp from 'fs/promises'
import { CacheFileSchema, IncrementAnalysis } from '../models/IncrementAnalysis'
import { app } from 'electron'
import { format } from 'date-fns'

export async function getFromCache(
startDate: Date,
Expand Down Expand Up @@ -48,7 +49,7 @@ export function getBaseCachePath(): string {
async function getCachePath(startDate: Date): Promise<string> {
const cachePath = path.join(
getBaseCachePath(),
`${startDate.toISOString()}.json`,
`${format(startDate, 'yyyy-MM-dd')}.json`,
)
return cachePath
}

0 comments on commit 54cad69

Please sign in to comment.