Skip to content

Commit 411ccc8

Browse files
authored
Fix angular example (pubkey#3957)
* Primary key must have set maxLength * Fix PL1 error
1 parent 05d32fb commit 411ccc8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

examples/angular/src/app/schemas/hero.schema.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ export const HERO_SCHEMA_LITERAL = {
1313
properties: {
1414
name: {
1515
type: 'string',
16-
default: ''
16+
default: '',
17+
maxLength: 100
1718
},
1819
color: {
1920
type: 'string',

examples/angular/src/app/services/database.service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ async function loadRxDBPlugins(): Promise<void> {
9494
// add dev-mode plugin
9595
// which does many checks and add full error-messages
9696
import('rxdb/plugins/dev-mode').then(
97-
module => addRxPlugin(module as any)
97+
module => addRxPlugin(module.RxDBDevModePlugin)
9898
)
9999
]);
100100
} else { }

0 commit comments

Comments
 (0)