mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-28 06:32:25 -05:00
[chore] return correct error message (#4377)
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl> Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4377 Co-authored-by: nicole mikołajczyk <git@mkljczk.pl> Co-committed-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
parent
fb2ef90ec5
commit
8e76c9ab57
3 changed files with 3 additions and 3 deletions
|
|
@ -11064,7 +11064,6 @@ paths:
|
|||
tags:
|
||||
- scheduled_statuses
|
||||
put:
|
||||
description: Update a scheduled status's publishing date
|
||||
operationId: updateScheduledStatus
|
||||
parameters:
|
||||
- description: ID of the status
|
||||
|
|
@ -11103,6 +11102,7 @@ paths:
|
|||
security:
|
||||
- OAuth2 Bearer:
|
||||
- write:statuses
|
||||
summary: Update a scheduled status's publishing date.
|
||||
tags:
|
||||
- scheduled_statuses
|
||||
/api/v1/statuses:
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ import (
|
|||
|
||||
// ScheduledStatusPUTHandler swagger:operation PUT /api/v1/scheduled_statuses/{id} updateScheduledStatus
|
||||
//
|
||||
// Update a scheduled status's publishing date
|
||||
// Update a scheduled status's publishing date.
|
||||
//
|
||||
// ---
|
||||
// tags:
|
||||
|
|
|
|||
|
|
@ -272,7 +272,7 @@ func (s *scheduledStatusDB) PutScheduledStatus(ctx context.Context, status *gtsm
|
|||
if _, err := tx.NewInsert().
|
||||
Model(status).
|
||||
Exec(ctx); err != nil {
|
||||
return gtserror.Newf("error selecting boosted status: %w", err)
|
||||
return gtserror.Newf("error inserting scheduled status: %w", err)
|
||||
}
|
||||
|
||||
// change the scheduled status ID of the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue