server: fix accessing password protected posts

This commit is contained in:
Max Leiter 2022-04-01 16:51:07 -07:00
parent 702dad14cb
commit ead3b0af9d
No known key found for this signature in database
GPG key ID: A3512F2F2F17EBDA
2 changed files with 3 additions and 2 deletions

View file

@ -32,7 +32,7 @@ export type Migration = typeof umzug._types.migration
// If you're in a development environment, you can manually migrate with `yarn migrate:{up,down}` in the `server` folder
if (config.is_production) {
;(async () => {
; (async () => {
// Checks migrations and run them if they are not already applied. To keep
// track of the executed migrations, a table (and sequelize model) called SequelizeMeta
// will be automatically created (if it doesn't exist already) and parsed.

View file

@ -246,7 +246,8 @@ posts.get(
"createdAt",
"updatedAt",
"deletedAt",
"expiresAt"
"expiresAt",
"password"
]
})