Skip to content

Commit 7f0433f

Browse files
committed
feat: examples
1 parent 25daa92 commit 7f0433f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎apps/demo-angular/src/features/home/home.component.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,12 @@ export class HomeComponent {
7777
this.currentMessage.set(value);
7878
}
7979

80-
addMessage() {
80+
async addMessage() {
8181
if (!this.currentMessage()) {
8282
return;
8383
}
8484
this.adding.set(true);
85-
const result = this.appWriteService.data.createDocument({
85+
const result = await this.appWriteService.data.createDocument({
8686
message: this.currentMessage(),
8787
createdAt: new Date().toISOString(),
8888
});

0 commit comments

Comments
 (0)