@hasna/mementos 0.14.19 → 0.14.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -0
- package/dist/server/index.js +3 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14226,6 +14226,9 @@ function createTask(db, input) {
|
|
|
14226
14226
|
ts
|
|
14227
14227
|
]);
|
|
14228
14228
|
const row = db.query("SELECT * FROM tasks WHERE id = ?").get(id);
|
|
14229
|
+
if (!row) {
|
|
14230
|
+
throw new Error(`Failed to load task after create: ${id}`);
|
|
14231
|
+
}
|
|
14229
14232
|
return parseTask(row);
|
|
14230
14233
|
}
|
|
14231
14234
|
function getTask(db, id) {
|
package/dist/server/index.js
CHANGED
|
@@ -14909,6 +14909,9 @@ function createTask(db, input) {
|
|
|
14909
14909
|
ts
|
|
14910
14910
|
]);
|
|
14911
14911
|
const row = db.query("SELECT * FROM tasks WHERE id = ?").get(id);
|
|
14912
|
+
if (!row) {
|
|
14913
|
+
throw new Error(`Failed to load task after create: ${id}`);
|
|
14914
|
+
}
|
|
14912
14915
|
return parseTask(row);
|
|
14913
14916
|
}
|
|
14914
14917
|
function getTask(db, id) {
|