diff --git a/README.md b/README.md index a21f3e9..745f07e 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ This is where you will be preparing your machine to run openplace. 1. install brew, node and git 2. run `git clone --recurse-submodules https://github.com/openplaceteam/openplace` 3. cd into the openplace directory -4. run ``npm i && brew install mariadb caddy`` +4. run ``npm i && brew install mariadb caddy nss`` 5. brew will then spit out a command to inform you on how to start it. if it doesn't, run `brew services start mariadb && brew services start caddy` #### Configuring and building the database 1. run `sudo mysql_secure_installation` diff --git a/src/routes/admin.ts b/src/routes/admin.ts index 14164f7..f60938a 100644 --- a/src/routes/admin.ts +++ b/src/routes/admin.ts @@ -105,11 +105,11 @@ export default function (app: App) { .json({ notes: notes.map(note => ({ id: note.id, - admin: { + author: { id: note.user.id, name: note.user.name }, - content: note.content, + note: note.content, createdAt: note.createdAt })) });