diff options
| author | Dhravya Shah <[email protected]> | 2024-08-02 09:44:31 -0700 |
|---|---|---|
| committer | Dhravya Shah <[email protected]> | 2024-08-02 09:44:31 -0700 |
| commit | 5846c494f33c57dc3724a9a3dd0f6ea7ea54d14c (patch) | |
| tree | 6f10636f0160d736d0fe9ad6c6c44dd1873682a3 /apps/web/app/api | |
| parent | Merge branch 'main' of github.com:supermemoryai/supermemory (diff) | |
| download | archived-supermemory-5846c494f33c57dc3724a9a3dd0f6ea7ea54d14c.tar.xz archived-supermemory-5846c494f33c57dc3724a9a3dd0f6ea7ea54d14c.zip | |
send a sliced version to the API
Diffstat (limited to 'apps/web/app/api')
| -rw-r--r-- | apps/web/app/api/store/helper.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/web/app/api/store/helper.ts b/apps/web/app/api/store/helper.ts index f8833970..a2c04dc1 100644 --- a/apps/web/app/api/store/helper.ts +++ b/apps/web/app/api/store/helper.ts @@ -24,8 +24,8 @@ export const createMemoryFromAPI = async (input: { method: "POST", body: JSON.stringify({ pageContent: input.data.pageContent, - title: input.data.title, - description: input.data.description, + title: input.data.title.slice(0, 500), + description: input.data.description.slice(0, 500), url: input.data.url, spaces: input.data.spaces, user: input.userId, |