Skip to content

Commit 28fd6c9

Browse files
committed
chore(temp): add dev data
1 parent 41cd9be commit 28fd6c9

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

servers/account-data-deleter/src/dataService/listDataExportService.ts

+13-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,19 @@ export class ListDataExportService {
102102
) {
103103
Sentry.addBreadcrumb({ data: { cursor: fromId, part, requestId } });
104104
try {
105-
const entries = await this.fetchListData(fromId, size);
105+
const entries: Array<ListExportEntry & { cursor: number }> =
106+
config.app.environment === 'development'
107+
? [
108+
{
109+
title: 'fake title',
110+
cursor: 1,
111+
url: 'http://localhost',
112+
time_added: 12345,
113+
status: 'unread',
114+
tags: 'todo',
115+
},
116+
]
117+
: await this.fetchListData(fromId, size);
106118
// There's no data
107119
if (entries.length === 0) {
108120
if (part === 0) {

0 commit comments

Comments
 (0)