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.
@@ -233,21 +228,21 @@ export class DurableObjectQueueHandler extends DurableObject<CloudflareEnv> {
233
228
}
234
229
235
230
/**
236
-
*
237
-
* @param msg
231
+
*
232
+
* @param msg
238
233
* @returns `true` if the route has been revalidated since the lastModified from the message, `false` otherwise
239
234
*/
240
-
checkSyncTable(msg: ExtendedQueueMessage){
235
+
checkSyncTable(msg: QueueMessage){
241
236
try{
242
-
constisNewer=this.sql.exec<{isNewer: number}>(
243
-
"SELECT COUNT(*) as isNewer FROM sync WHERE id = ? AND lastSuccess > ?",
244
-
`${msg.MessageBody.host}${msg.MessageBody.url}`,
245
-
Math.round(msg.MessageBody.lastModified/1000)
246
-
).one().isNewer;
237
+
constisNewer=this.sql
238
+
.exec<{
239
+
isNewer: number;
240
+
}>("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