api: handle more string sanitization (#1702)
This commit is contained in:
@@ -118,7 +118,7 @@ const SuccessPageWithSearchParams = () => {
|
||||
}
|
||||
|
||||
setSessionStatus({
|
||||
status: purchase.status === 'active' ? 'complete' : 'processing',
|
||||
status: purchase.status === 'active' ? 'complete' : 'failed',
|
||||
customerEmail: purchase.customerEmail || '',
|
||||
subscriptionId: purchase.subscriptionId,
|
||||
planName: purchase.planName,
|
||||
|
||||
@@ -60,9 +60,9 @@ export const transformBookToDB = (book: unknown, userId: string): DBBook => {
|
||||
book_hash: hash,
|
||||
format,
|
||||
title: sanitizeString(title)!,
|
||||
author,
|
||||
author: sanitizeString(author)!,
|
||||
group_id: groupId,
|
||||
group_name: groupName,
|
||||
group_name: sanitizeString(groupName),
|
||||
tags: tags,
|
||||
progress: progress,
|
||||
source_title: sanitizeString(sourceTitle),
|
||||
|
||||
Reference in New Issue
Block a user