You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// TODO: when restoring from the failed state during a new deployment, previewModeId will be different and we'll be in this case. Figure out how to handle this.
@@ -218,21 +213,21 @@ export class DurableObjectQueueHandler extends DurableObject<CloudflareEnv> {
218
213
}
219
214
220
215
/**
221
-
*
222
-
* @param msg
216
+
*
217
+
* @param msg
223
218
* @returns `true` if the route has been revalidated since the lastModified from the message, `false` otherwise
224
219
*/
225
-
checkSyncTable(msg: ExtendedQueueMessage){
220
+
checkSyncTable(msg: QueueMessage){
226
221
try{
227
-
constisNewer=this.sql.exec<{isNewer: number}>(
228
-
"SELECT COUNT(*) as isNewer FROM sync WHERE id = ? AND lastSuccess > ?",
229
-
`${msg.MessageBody.host}${msg.MessageBody.url}`,
230
-
Math.round(msg.MessageBody.lastModified/1000)
231
-
).one().isNewer;
222
+
constisNewer=this.sql
223
+
.exec<{
224
+
isNewer: number;
225
+
}>("SELECT COUNT(*) as isNewer FROM sync WHERE id = ? AND lastSuccess > ?",`${msg.MessageBody.host}${msg.MessageBody.url}`,Math.round(msg.MessageBody.lastModified/1000))
0 commit comments