server: fix accessing password protected posts
This commit is contained in:
parent
702dad14cb
commit
ead3b0af9d
2 changed files with 3 additions and 2 deletions
|
@ -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 you're in a development environment, you can manually migrate with `yarn migrate:{up,down}` in the `server` folder
|
||||||
if (config.is_production) {
|
if (config.is_production) {
|
||||||
;(async () => {
|
; (async () => {
|
||||||
// Checks migrations and run them if they are not already applied. To keep
|
// 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
|
// track of the executed migrations, a table (and sequelize model) called SequelizeMeta
|
||||||
// will be automatically created (if it doesn't exist already) and parsed.
|
// will be automatically created (if it doesn't exist already) and parsed.
|
||||||
|
|
|
@ -246,7 +246,8 @@ posts.get(
|
||||||
"createdAt",
|
"createdAt",
|
||||||
"updatedAt",
|
"updatedAt",
|
||||||
"deletedAt",
|
"deletedAt",
|
||||||
"expiresAt"
|
"expiresAt",
|
||||||
|
"password"
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue