A local-first personal finance app
fix: Update methods to match TypeScript type (#6331)
Parker Chencfa1156fe06f
diff --git a/packages/api/app/query.js b/packages/api/app/query.jsindex f9f8079951..2416fc97f9 100644--- a/packages/api/app/query.js+++ b/packages/api/app/query.js@@ -97,6 +97,14 @@ class Query {serialize() {return this.state;}++ reset() {+ return q(this.state.table);+ }++ serializeAsString() {+ return JSON.stringify(this.serialize());+ }}export function q(table) {diff --git a/upcoming-release-notes/6331.md b/upcoming-release-notes/6331.mdnew file mode 100644index 0000000000..223507de2f--- /dev/null+++ b/upcoming-release-notes/6331.md@@ -0,0 +1,6 @@+---+category: Bugfix+authors: [BHChen24]+---++Updates the `Query` class in `packages/api/app/query.js` to include the missing `reset()` and `serializeAsString()` methods.