Skip to content

Commit

Permalink
Fixed AppsController.ts linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkBrines committed Jul 21, 2024
1 parent 9e72a04 commit 94e2aed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/Controllers/Http/AppsController.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { HttpContextContract } from '@ioc:Adonis/Core/HttpContext'
import App, { AppCategory } from '../../Models/App'
import App from '../../Models/App'
import { string } from '@ioc:Adonis/Core/Helpers'

export default class AppsController {
Expand Down Expand Up @@ -61,11 +61,11 @@ export default class AppsController {
imgUrl = process.env.ACCESS_ADDRESS + "/uploads/appicons/" + filename
}

let newApp = App.create({
await App.create({
userId: auth.user.id,
name: data.name,
desc: data.desc,
image: data.image,
image: imgUrl,
source_url: data.source_url,
releases: data.releases,
category: data.categories
Expand Down

0 comments on commit 94e2aed

Please sign in to comment.