Skip to content

Commit af0a2e8

Browse files
committed
rename the methods for fetching related users data
1 parent 3acb143 commit af0a2e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/models/adminLog.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ import {camelToSnake, snakeToCamel} from '../util';
2222

2323
export default function adminLog(bookshelf) {
2424
const AdminLog = bookshelf.Model.extend({
25-
adminId() {
25+
admin() {
2626
return this.belongsTo('Editor', 'admin_id');
2727
},
2828
format: camelToSnake,
2929
idAttribute: 'id',
3030
parse: snakeToCamel,
3131
tableName: 'bookbrainz.admin_log',
32-
tagetUserId() {
32+
targetUser() {
3333
return this.belongsTo('Editor', 'target_user_id');
3434
}
3535
});

0 commit comments

Comments
 (0)