Skip to content

Commit

Permalink
fix module issues when running worker
Browse files Browse the repository at this point in the history
  • Loading branch information
huumn committed Sep 27, 2023
1 parent cf5b296 commit 5129982
Show file tree
Hide file tree
Showing 5 changed files with 600 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
web: npm run start
worker: node --trace-warnings worker/index.js
worker: npm run worker
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ services:
- opensearch
entrypoint: ["/bin/sh", "-c"]
command:
- node worker/index.js
- npm run worker
imgproxy:
container_name: imgproxy
image: darthsim/imgproxy:v3.18.1
Expand Down
3 changes: 2 additions & 1 deletion lib/validate.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { string, ValidationError, number, object, array, addMethod, boolean } from 'yup'
import { BOOST_MIN, MAX_POLL_CHOICE_LENGTH, MAX_TITLE_LENGTH, MAX_POLL_NUM_CHOICES, MIN_POLL_NUM_CHOICES, SUBS_NO_JOBS, MAX_FORWARDS, BOOST_MULT } from './constants'
import { NAME_QUERY } from '../fragments/users'
import { URL_REGEXP, WS_REGEXP } from './url'
import { SUPPORTED_CURRENCIES } from './currency'
import { NOSTR_MAX_RELAY_NUM, NOSTR_PUBKEY_BECH32, NOSTR_PUBKEY_HEX } from './nostr'
import * as pkg from '../fragments/users'
const { NAME_QUERY } = pkg

export async function ssValidate (schema, data, args) {
try {
Expand Down
Loading

0 comments on commit 5129982

Please sign in to comment.