Make coverage filing sync explicit
This commit is contained in:
@@ -500,7 +500,7 @@ export const app = new Elysia({ prefix: '/api' })
|
||||
}
|
||||
|
||||
try {
|
||||
const { item, created } = await upsertWatchlistItemRecord({
|
||||
const { item } = await upsertWatchlistItemRecord({
|
||||
userId: session.user.id,
|
||||
ticker,
|
||||
companyName,
|
||||
@@ -512,14 +512,10 @@ export const app = new Elysia({ prefix: '/api' })
|
||||
lastReviewedAt
|
||||
});
|
||||
|
||||
const autoFilingSyncQueued = created
|
||||
? await queueAutoFilingSync(session.user.id, ticker, {
|
||||
category: item.category,
|
||||
tags: item.tags
|
||||
})
|
||||
: false;
|
||||
|
||||
return Response.json({ item, autoFilingSyncQueued });
|
||||
return Response.json({
|
||||
item,
|
||||
autoFilingSyncQueued: false
|
||||
});
|
||||
} catch (error) {
|
||||
return jsonError(asErrorMessage(error, 'Failed to create watchlist item'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user