Khrisna commited on
Commit
85ce074
·
1 Parent(s): f622b35

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +2 -2
index.js CHANGED
@@ -13,7 +13,7 @@ const fileType = require("file-type")
13
  //const { BingChat } = (await import("bing-chat")).default
14
 
15
  const { insta_iwaId, insta_iwaIdUrl, insta_iwa, insta_iwaTag } = require("./lib/instagram.js")
16
- const { webpToJpg } = require("./lib/convertFormat.js")
17
  const apikey = "@SadTeam77"
18
 
19
  const app = express()
@@ -192,7 +192,7 @@ app.post('/api/nsfw-check', async (req, res) => {
192
  })
193
  }
194
  if (type.ext == "webp") {
195
- let converting = await webpToJpg(img)
196
  let response = await check_nsfw(converting)
197
  res.json({
198
  status: "ok",
 
13
  //const { BingChat } = (await import("bing-chat")).default
14
 
15
  const { insta_iwaId, insta_iwaIdUrl, insta_iwa, insta_iwaTag } = require("./lib/instagram.js")
16
+ const { allToJpg } = require("./lib/convertFormat.js")
17
  const apikey = "@SadTeam77"
18
 
19
  const app = express()
 
192
  })
193
  }
194
  if (type.ext == "webp") {
195
+ let converting = await allToJpg(img)
196
  let response = await check_nsfw(converting)
197
  res.json({
198
  status: "ok",