Skip to content

Commit

Permalink
Require userId in getAll
Browse files Browse the repository at this point in the history
  • Loading branch information
tedspare committed Oct 15, 2024
1 parent 5df15a3 commit 89451e5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
- [2024-10-15] [Require userId in getAll](https://github.com/RubricLab/memory/commit/17a1f03ce3817a9aed9391380ff340db15214046)
- [2024-10-11] [Add ability to correct old facts](https://github.com/RubricLab/memory/commit/2fc23586e30ca4e5366cada37c2e04d8647db3e5)
- [2024-10-11] [User-scope everything](https://github.com/RubricLab/memory/commit/621f063252eff5d8999173494b4c17f223f0d903)
- [2024-10-11] [Add getAll route](https://github.com/RubricLab/memory/commit/71eb1f5d7afbb26390d2b2617081b46301e9022c)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@rubriclab/memory",
"module": "src/index.ts",
"main": "src/index.ts",
"version": "0.0.22",
"version": "0.0.23",
"private": false,
"type": "module",
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export class Memory {
return res
}

async getAll({ where, userId = this.userId }: { where?: { tags: string[] }; userId?: string }) {
async getAll({ where, userId = this.userId }: { where?: { tags: string[] }; userId: string }) {
const relations = await this.db.relationship.findMany({
where: {
...(where?.tags
Expand Down

0 comments on commit 89451e5

Please sign in to comment.