|
|
|
@ -65,7 +65,7 @@ export const GET: RequestHandler = async ({ params, request }) => {
|
|
|
|
const inm = request.headers.get('if-none-match');
|
|
|
|
const inm = request.headers.get('if-none-match');
|
|
|
|
if (inm && inm === etag) {
|
|
|
|
if (inm && inm === etag) {
|
|
|
|
// Actualizar last_used_at aunque sea 304
|
|
|
|
// Actualizar last_used_at aunque sea 304
|
|
|
|
db.prepare(`UPDATE calendar_tokens SET last_used_at = ? WHERE id = ?`).run(toIsoSql(), row.id);
|
|
|
|
db.prepare(`UPDATE calendar_tokens SET last_used_at = ? WHERE id = ?`).run(toIsoSqlUTC(), row.id);
|
|
|
|
return new Response(null, { status: 304, headers: { ETag: etag, 'Cache-Control': 'public, max-age=300' } });
|
|
|
|
return new Response(null, { status: 304, headers: { ETag: etag, 'Cache-Control': 'public, max-age=300' } });
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|