Skip to content

Commit

Permalink
fix: fix name (controller)
Browse files Browse the repository at this point in the history
  • Loading branch information
JellyBrick committed Dec 24, 2024
1 parent 544b9e3 commit f82fe85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/plugins/api-server/backend/routes/control.ts
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ export const register = (
});
app.openapi(routes.seekTo, (ctx) => {
const { seconds } = ctx.req.valid('json');
controller.seek(seconds);
controller.seekTo(seconds);

ctx.status(204);
return ctx.body(null);
Expand Down
2 changes: 1 addition & 1 deletion src/providers/song-controls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default (win: BrowserWindow) => {
playPause: () => win.webContents.send('ytmd:toggle-play'),
like: () => win.webContents.send('ytmd:update-like', 'LIKE'),
dislike: () => win.webContents.send('ytmd:update-like', 'DISLIKE'),
seek: (seconds: ArgsType<number>) => {
seekTo: (seconds: ArgsType<number>) => {
const secondsNumber = parseNumberFromArgsType(seconds);
if (secondsNumber !== null) {
win.webContents.send('ytmd:seek-to', seconds);
Expand Down

0 comments on commit f82fe85

Please sign in to comment.