Skip to content

Commit

Permalink
update tldraw collection names
Browse files Browse the repository at this point in the history
  • Loading branch information
davwas committed Nov 24, 2023
1 parent a81e432 commit d041766
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Entity, PrimaryKey, Property } from '@mikro-orm/core';
import { BadRequestException } from '@nestjs/common';
import { ObjectId } from '@mikro-orm/mongodb';

@Entity({ tableName: 'drawing' })
@Entity({ tableName: 'drawings' })
export class TldrawDrawing {
constructor(props: TldrawDrawingProps) {
if (!props.docName) throw new BadRequestException('Tldraw element should have name.');
Expand Down
2 changes: 1 addition & 1 deletion config/test.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"SOCKET_PORT": 3346,
"PING_TIMEOUT": 1,
"GC_ENABLED": true,
"DB_COLLECTION_NAME": "drawing",
"DB_COLLECTION_NAME": "drawings",
"DB_FLUSH_SIZE": 400,
"DB_MULTIPLE_COLLECTIONS": false
}
Expand Down

0 comments on commit d041766

Please sign in to comment.