mirror of https://gitlab.com/mayx/mayx.gitlab.io
parent
99ec7de3cd
commit
2fd191d418
|
@ -196,7 +196,7 @@ export default {
|
||||||
).bind(query).first("content");
|
).bind(query).first("content");
|
||||||
}
|
}
|
||||||
if (result != data) {
|
if (result != data) {
|
||||||
await db.prepare("UPDATE blog_summary SET content = ?1 WHERE id = ?2")
|
await db.prepare("UPDATE blog_summary SET content = ?1, summary = NULL WHERE id = ?2")
|
||||||
.bind(data, query).run();
|
.bind(data, query).run();
|
||||||
}
|
}
|
||||||
return new Response("OK", {
|
return new Response("OK", {
|
||||||
|
|
Loading…
Reference in New Issue