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