diff options
| author | Dhravya <[email protected]> | 2024-06-30 18:42:53 -0500 |
|---|---|---|
| committer | Dhravya <[email protected]> | 2024-06-30 18:42:53 -0500 |
| commit | 79e26730800ed5e7d6fe59f3a3c002e0dfe46353 (patch) | |
| tree | 4b7c56b8a648c4024c5b7c4565cb544e0e792718 /apps/web/app/api | |
| parent | ensure useriD while saving (diff) | |
| download | supermemory-79e26730800ed5e7d6fe59f3a3c002e0dfe46353.tar.xz supermemory-79e26730800ed5e7d6fe59f3a3c002e0dfe46353.zip | |
makeshift notes page
Diffstat (limited to 'apps/web/app/api')
| -rw-r--r-- | apps/web/app/api/store/route.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/web/app/api/store/route.ts b/apps/web/app/api/store/route.ts index 29d7eec3..a67787c4 100644 --- a/apps/web/app/api/store/route.ts +++ b/apps/web/app/api/store/route.ts @@ -59,6 +59,8 @@ const createMemoryFromAPI = async (input: { "#supermemory-user-" + input.userId; + const noteId = new Date().getTime(); + // Insert into database try { const insertResponse = await db @@ -73,6 +75,7 @@ const createMemoryFromAPI = async (input: { savedAt: new Date(), userId: input.userId, type: input.data.type, + noteId, }) .returning({ id: storedContent.id }); |