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.
2 parents ae050ac + a7dff86 commit c168a22Copy full SHA for c168a22
functions/src/keyboards/create-keyboard-statistics-command.ts
@@ -122,11 +122,11 @@ export class CreateKeyboardStatisticsCommand extends AbstractCommand<ICreateKeyb
122
};
123
}
124
const keyboardDefinition = keyboardDefinitionSnapshot.data()!;
125
- if (keyboardDefinition.uid !== uid) {
+ if (keyboardDefinition.author_uid !== uid) {
126
return {
127
success: false,
128
errorCode: ERROR_KEYBOARD_DEFINITION_NOT_FOUND,
129
- errorMessage: `The keyboard definition ${keyboardDefinitionId} is not found.`,
+ errorMessage: `The user is not an owner of the keyboard definition ${keyboardDefinitionId}.`,
130
131
132
0 commit comments