mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 14: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:
|
tags:
|
||||||
- scheduled_statuses
|
- scheduled_statuses
|
||||||
put:
|
put:
|
||||||
description: Update a scheduled status's publishing date
|
|
||||||
operationId: updateScheduledStatus
|
operationId: updateScheduledStatus
|
||||||
parameters:
|
parameters:
|
||||||
- description: ID of the status
|
- description: ID of the status
|
||||||
|
|
@ -11103,6 +11102,7 @@ paths:
|
||||||
security:
|
security:
|
||||||
- OAuth2 Bearer:
|
- OAuth2 Bearer:
|
||||||
- write:statuses
|
- write:statuses
|
||||||
|
summary: Update a scheduled status's publishing date.
|
||||||
tags:
|
tags:
|
||||||
- scheduled_statuses
|
- scheduled_statuses
|
||||||
/api/v1/statuses:
|
/api/v1/statuses:
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ import (
|
||||||
|
|
||||||
// ScheduledStatusPUTHandler swagger:operation PUT /api/v1/scheduled_statuses/{id} updateScheduledStatus
|
// 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:
|
// tags:
|
||||||
|
|
|
||||||
|
|
@ -272,7 +272,7 @@ func (s *scheduledStatusDB) PutScheduledStatus(ctx context.Context, status *gtsm
|
||||||
if _, err := tx.NewInsert().
|
if _, err := tx.NewInsert().
|
||||||
Model(status).
|
Model(status).
|
||||||
Exec(ctx); err != nil {
|
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
|
// change the scheduled status ID of the
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue