fix time geneate logic and replace default datetime by luxon
This commit is contained in:
@@ -73,7 +73,7 @@ export class UploadedFileSchema extends PothosSchema {
|
||||
'Retrieve a single uploaded file by its unique identifier.',
|
||||
type: this.uploadedFile(),
|
||||
args: this.builder.generator.findUniqueArgs('UploadedFile'),
|
||||
resolve: async (query, root, args) => {
|
||||
resolve: async (query, _root, args) => {
|
||||
const file = await this.prisma.uploadedFile.findUnique({
|
||||
...query,
|
||||
where: args.where,
|
||||
@@ -94,7 +94,7 @@ export class UploadedFileSchema extends PothosSchema {
|
||||
'Retrieve a list of uploaded files with optional filtering, ordering, and pagination.',
|
||||
type: [this.uploadedFile()],
|
||||
args: this.builder.generator.findManyArgs('UploadedFile'),
|
||||
resolve: async (query, root, args) => {
|
||||
resolve: async (query, _root, args) => {
|
||||
const files = await this.prisma.uploadedFile.findMany({
|
||||
...query,
|
||||
skip: args.skip ?? undefined,
|
||||
@@ -132,7 +132,7 @@ export class UploadedFileSchema extends PothosSchema {
|
||||
required: true,
|
||||
}),
|
||||
},
|
||||
resolve: async (query, root, args) => {
|
||||
resolve: async (_query, _root, args) => {
|
||||
const user = await this.prisma.user.findUnique({
|
||||
where: {
|
||||
id: args.userId,
|
||||
@@ -182,7 +182,7 @@ export class UploadedFileSchema extends PothosSchema {
|
||||
required: true,
|
||||
}),
|
||||
},
|
||||
resolve: async (query, root, args) => {
|
||||
resolve: async (_query, _root, args) => {
|
||||
const user = await this.prisma.user.findUnique({
|
||||
where: {
|
||||
id: args.userId,
|
||||
@@ -230,7 +230,7 @@ export class UploadedFileSchema extends PothosSchema {
|
||||
required: true,
|
||||
}),
|
||||
},
|
||||
resolve: async (query, root, args) => {
|
||||
resolve: async (_query, _root, args) => {
|
||||
const file = await this.prisma.uploadedFile.findUnique({
|
||||
where: {
|
||||
id: args.id,
|
||||
@@ -259,7 +259,7 @@ export class UploadedFileSchema extends PothosSchema {
|
||||
required: true,
|
||||
}),
|
||||
},
|
||||
resolve: async (query, root, args) => {
|
||||
resolve: async (_query, _root, args) => {
|
||||
const files = await this.prisma.uploadedFile.findMany({
|
||||
where: {
|
||||
id: {
|
||||
|
||||
Reference in New Issue
Block a user