Khrisna commited on
Commit
f12a8d4
·
1 Parent(s): 9f5ba05

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +1 -1
index.js CHANGED
@@ -183,7 +183,7 @@ app.post('/api/nsfw-check', async (req, res) => {
183
  })
184
  } else if (images && typeof images == 'string' && isBase64(images)) {
185
  const img = Buffer.from(images, "base64")
186
- const type = await fileType.fileTypeFromBuffer(img)
187
  if (type.ext == "jpg") {
188
  let response = await check_nsfw(img)
189
  res.json({
 
183
  })
184
  } else if (images && typeof images == 'string' && isBase64(images)) {
185
  const img = Buffer.from(images, "base64")
186
+ const type = await fileType.fromBuffer(img)
187
  if (type.ext == "jpg") {
188
  let response = await check_nsfw(img)
189
  res.json({