Skip to content
This repository was archived by the owner on Jul 14, 2025. It is now read-only.

Commit ff810c6

Browse files
DEV: Convert to native class syntax (#110)
1 parent 5c64887 commit ff810c6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import RestAdapter from "discourse/adapters/rest";
22
import { ajax } from "discourse/lib/ajax";
33

4-
export default RestAdapter.extend({
4+
export default class UserNote extends RestAdapter {
55
destroyRecord(store, type, record) {
66
const path = this.pathFor(store, type, record.id);
77
return ajax(`${path}?user_id=${record.user_id}`, { method: "DELETE" });
8-
},
9-
});
8+
}
9+
}

0 commit comments

Comments
 (0)