Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions packages/transport/src/modules/sync/SynchronizedCollection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,17 @@ export class SynchronizedCollection implements IDatabaseCollection {
) {
this.name = parent.name;
this.databaseType = parent.databaseType;

if (this.name.length > 50) {
throw new Error("Collection name exceeds maximum length of 50 characters.");
}
}

public async create(newObject: CoreSynchronizable): Promise<any> {
if (newObject.id.toString().length > 100) {
throw new Error("Object ID exceeds maximum length of 100 characters.");
}

const newObjectJson = newObject.toJSON();

if (!this.datawalletModifications) {
Expand Down