We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fbc7ef commit 066c9a8Copy full SHA for 066c9a8
src/builders/database-builder.ts
@@ -37,7 +37,7 @@ export default class DatabaseBuilder extends FunctionBuilder {
37
handler: (event: Event<DatabaseDeltaSnapshot>) => PromiseLike<any> | any
38
): CloudFunction {
39
if (!this._path) {
40
- throw new Error('Must call .path(pathValue) before .on() for database function definitions.');
+ throw new Error('Must call .path(pathValue) before .onWrite() for database function definitions.');
41
}
42
return this._makeHandler(handler, 'data.write');
43
0 commit comments