feat(services): add guilds endpoints

This commit is contained in:
Divlo
2022-02-19 19:08:25 +00:00
parent 5f2b8c8021
commit e6d8b64f8a
31 changed files with 2213 additions and 2314 deletions

View File

@ -101,7 +101,6 @@ export const postMessageByChannelIdService: FastifyPluginAsync = async (
memberId: memberCheck.id
}
})
reply.statusCode = 201
const item = {
...message,
member: {
@ -117,6 +116,7 @@ export const postMessageByChannelIdService: FastifyPluginAsync = async (
guildId: item.member.guildId,
payload: { action: 'create', item }
})
reply.statusCode = 201
return item
}
})

View File

@ -95,7 +95,7 @@ export const postMessageUploadsByChannelIdService: FastifyPluginAsync = async (
fastify,
request,
folderInUploadsFolder: 'messages',
maximumFileSize: maximumFileSize
maximumFileSize
})
const message = await prisma.message.create({
data: {