Auto-queue filings sync on new ticker inserts
This commit is contained in:
@@ -96,7 +96,10 @@ export async function upsertHoldingRecord(input: {
|
||||
.where(eq(holding.id, existing.id))
|
||||
.returning();
|
||||
|
||||
return toHolding(updated);
|
||||
return {
|
||||
holding: toHolding(updated),
|
||||
created: false
|
||||
};
|
||||
}
|
||||
|
||||
const normalized = normalizeHoldingInput({
|
||||
@@ -140,7 +143,10 @@ export async function upsertHoldingRecord(input: {
|
||||
})
|
||||
.returning();
|
||||
|
||||
return toHolding(inserted);
|
||||
return {
|
||||
holding: toHolding(inserted),
|
||||
created: true
|
||||
};
|
||||
}
|
||||
|
||||
export async function updateHoldingByIdRecord(input: {
|
||||
|
||||
Reference in New Issue
Block a user