feat: Add user ID parameter to shelf synchronization jobs and improve Prisma query type safety for shelf where clauses.

This commit is contained in:
Rob Walsh
2026-03-09 13:52:18 -06:00
parent c0cff56b47
commit 5d2e33e369
4 changed files with 13 additions and 4 deletions
+7 -1
View File
@@ -771,7 +771,13 @@ export class JobQueueService {
/**
* Add sync reading shelves job
*/
async addSyncShelvesJob(scheduledJobId?: string, shelfId?: string, shelfType?: 'goodreads' | 'hardcover', maxLookupsPerShelf?: number): Promise<string> {
async addSyncShelvesJob(
scheduledJobId?: string,
shelfId?: string,
shelfType?: 'goodreads' | 'hardcover',
maxLookupsPerShelf?: number,
userId?: string
): Promise<string> {
return await this.addJob(
'sync_reading_shelves',
{