Skip to content

Commit 066c9a8

Browse files
author
Robert-Jan Huijsman
committed
Fix a stale error message: users now use .onWrite() rather than .on()
1 parent 9fbc7ef commit 066c9a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/builders/database-builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default class DatabaseBuilder extends FunctionBuilder {
3737
handler: (event: Event<DatabaseDeltaSnapshot>) => PromiseLike<any> | any
3838
): CloudFunction {
3939
if (!this._path) {
40-
throw new Error('Must call .path(pathValue) before .on() for database function definitions.');
40+
throw new Error('Must call .path(pathValue) before .onWrite() for database function definitions.');
4141
}
4242
return this._makeHandler(handler, 'data.write');
4343
}

0 commit comments

Comments
 (0)