Use reminder by elasticPageId

This commit is contained in:
Hongbo Wu 2022-05-13 16:01:23 +08:00
parent 394a558e45
commit 40cbfc9058

View file

@ -89,7 +89,7 @@ class ReminderModel extends DataModel<ReminderData, CreateSet, UpdateSet> {
): Promise<ReminderData | null> {
const row: ReminderData = await tx(this.tableName)
.select()
.where({ userId, articleSavingRequestId: requestId })
.where({ userId, elasticPageId: requestId })
.first(this.modelKeys)
if (!row) return null