fix: build lint errors

This commit is contained in:
Davinci 2024-05-09 16:33:12 +02:00
parent 1ba7144baf
commit 5f7d4fe72e
4 changed files with 8180 additions and 1 deletions

View File

@ -18,3 +18,36 @@ https://www.youtube.com/watch?v=OJx6ExVTS7c
# License # License
MIT 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

File diff suppressed because it is too large Load Diff

View File

@ -69,7 +69,9 @@ export async function speechToTextJob(event: NDKEvent): Promise<string> {
// const input = event.tagValue('i'); // const input = event.tagValue('i');
const range = event.getMatchingTags('param').find((tag) => tag[1] === 'range'); 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) => { return new Promise((resolve) => {
const startTime = range[2]; const startTime = range[2];
const endTime = range[3]; const endTime = range[3];

View File

@ -7,4 +7,6 @@ export default async function validateExpiration(event: NDKEvent) {
if (expTag && parseInt(expTag) < timeNow - 10) { if (expTag && parseInt(expTag) < timeNow - 10) {
throw new Error('Job expired'); throw new Error('Job expired');
} }
return
} }