Skip to content

Commit c168a22

Browse files
authored
Merge pull request #50 from remap-keys/fix-statistics-issue
Fix the creating statistics issue.
2 parents ae050ac + a7dff86 commit c168a22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

functions/src/keyboards/create-keyboard-statistics-command.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,11 @@ export class CreateKeyboardStatisticsCommand extends AbstractCommand<ICreateKeyb
122122
};
123123
}
124124
const keyboardDefinition = keyboardDefinitionSnapshot.data()!;
125-
if (keyboardDefinition.uid !== uid) {
125+
if (keyboardDefinition.author_uid !== uid) {
126126
return {
127127
success: false,
128128
errorCode: ERROR_KEYBOARD_DEFINITION_NOT_FOUND,
129-
errorMessage: `The keyboard definition ${keyboardDefinitionId} is not found.`,
129+
errorMessage: `The user is not an owner of the keyboard definition ${keyboardDefinitionId}.`,
130130
};
131131
}
132132
return {

0 commit comments

Comments
 (0)