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 3acb143 commit af0a2e8Copy full SHA for af0a2e8
src/models/adminLog.js
@@ -22,14 +22,14 @@ import {camelToSnake, snakeToCamel} from '../util';
22
23
export default function adminLog(bookshelf) {
24
const AdminLog = bookshelf.Model.extend({
25
- adminId() {
+ admin() {
26
return this.belongsTo('Editor', 'admin_id');
27
},
28
format: camelToSnake,
29
idAttribute: 'id',
30
parse: snakeToCamel,
31
tableName: 'bookbrainz.admin_log',
32
- tagetUserId() {
+ targetUser() {
33
return this.belongsTo('Editor', 'target_user_id');
34
}
35
});
0 commit comments