fix: build lint errors
This commit is contained in:
parent
1ba7144baf
commit
5f7d4fe72e
33
README.md
33
README.md
@ -18,3 +18,36 @@ https://www.youtube.com/watch?v=OJx6ExVTS7c
|
||||
# License
|
||||
|
||||
MIT
|
||||
|
||||
# Start with PM2
|
||||
```sh
|
||||
npm i
|
||||
```
|
||||
|
||||
```sh
|
||||
npm run build
|
||||
```
|
||||
|
||||
```sh
|
||||
pm2 start --name "Sigit-DVM" -- start
|
||||
```
|
||||
|
||||
## Make PM2 auto start on reboot
|
||||
|
||||
```sh
|
||||
pm2 save
|
||||
```
|
||||
|
||||
```sh
|
||||
pm2 startup
|
||||
```
|
||||
|
||||
Copy/Paste given command by the pm2
|
||||
|
||||
Done
|
||||
|
||||
To remove it from startup
|
||||
|
||||
```sh
|
||||
pm2 unstartup systemd
|
||||
```
|
8142
package-lock.json
generated
Normal file
8142
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -69,7 +69,9 @@ export async function speechToTextJob(event: NDKEvent): Promise<string> {
|
||||
|
||||
// const input = event.tagValue('i');
|
||||
const range = event.getMatchingTags('param').find((tag) => tag[1] === 'range');
|
||||
if (false) {
|
||||
return new Promise((resolve) => whisperCommand(resolve, file));
|
||||
|
||||
if (range) {
|
||||
return new Promise((resolve) => {
|
||||
const startTime = range[2];
|
||||
const endTime = range[3];
|
||||
|
@ -7,4 +7,6 @@ export default async function validateExpiration(event: NDKEvent) {
|
||||
if (expTag && parseInt(expTag) < timeNow - 10) {
|
||||
throw new Error('Job expired');
|
||||
}
|
||||
|
||||
return
|
||||
}
|
Loading…
Reference in New Issue
Block a user