Skip to content

Commit dcae646

Browse files
committed
whattheduck,api: Fix types
1 parent eac04a1 commit dcae646

File tree

2 files changed

+2
-3
lines changed
  • apps/whattheduck/src/stores
  • packages/api/services/collection/issues

2 files changed

+2
-3
lines changed

apps/whattheduck/src/stores/app.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,8 @@ export const app = defineStore('app', () => {
155155
getTextToCopy: async () => {
156156
await coa().fetchIssuecodesByPublicationcode([publicationcode.value!]);
157157
return coa()
158-
.issuecodesByPublicationcode[publicationcode.value!].filter(
158+
.issuecodesByPublicationcode[publicationcode.value!].map(({ issuecode }) => issuecode)
159+
.filter(
159160
// FIXME can't deconstruct collection() using storeToRefs
160161
(issuecode) =>
161162
!collection()

packages/api/services/collection/issues/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,8 +380,6 @@ export const resetDemo = async () => {
380380
purchaseId: string;
381381
}
382382

383-
const currentDir = process.cwd();
384-
385383
const csvIssues: CsvIssue[] = parse(
386384
readFileSync(`${csvPath}demo_issues.csv`),
387385
{ columns: true },

0 commit comments

Comments
 (0)