Skip to content

Commit

Permalink
Merge pull request #2 from thetribeio/fix/test-route-initialization
Browse files Browse the repository at this point in the history
fix: sms controller should not be marked as async
  • Loading branch information
Mweydert authored Jun 27, 2023
2 parents 3f7f433 + 1399723 commit 01d1f3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@thetribe/strapi-plugin-sms",
"version": "1.0.1",
"version": "1.0.2",
"description": "Send SMS inside of your Strapi app.",
"strapi": {
"name": "sms",
Expand Down
2 changes: 1 addition & 1 deletion server/controllers/sms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { pick } from 'lodash/fp'
import { errors } from '@strapi/utils'

const ApplicationError = errors.ApplicationError
export default async ({ strapi }: { strapi: any }): Promise<any> => ({
export default ({ strapi }: { strapi: any }): any => ({
async send(ctx: any) {
const options = ctx.request.body

Expand Down

0 comments on commit 01d1f3d

Please sign in to comment.