mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-10-05 17:12:35 +00:00
[Controller] Fix function description in SyncjobModel
This commit is contained in:
@@ -155,28 +155,28 @@ class SyncjobModel(BaseModel):
|
|||||||
|
|
||||||
def get(self):
|
def get(self):
|
||||||
"""
|
"""
|
||||||
Get the mailbox details from the mailcow API.
|
Get the sync job details from the mailcow API.
|
||||||
:return: Response from the mailcow API.
|
:return: Response from the mailcow API.
|
||||||
"""
|
"""
|
||||||
return self.mailcow.getSyncjob(self.username)
|
return self.mailcow.getSyncjob(self.username)
|
||||||
|
|
||||||
def delete(self):
|
def delete(self):
|
||||||
"""
|
"""
|
||||||
Get the mailbox details from the mailcow API.
|
Get the sync job details from the mailcow API.
|
||||||
:return: Response from the mailcow API.
|
:return: Response from the mailcow API.
|
||||||
"""
|
"""
|
||||||
return self.mailcow.deleteSyncjob(self.id)
|
return self.mailcow.deleteSyncjob(self.id)
|
||||||
|
|
||||||
def add(self):
|
def add(self):
|
||||||
"""
|
"""
|
||||||
Get the mailbox details from the mailcow API.
|
Get the sync job details from the mailcow API.
|
||||||
:return: Response from the mailcow API.
|
:return: Response from the mailcow API.
|
||||||
"""
|
"""
|
||||||
return self.mailcow.addSyncjob(self.getAdd())
|
return self.mailcow.addSyncjob(self.getAdd())
|
||||||
|
|
||||||
def edit(self):
|
def edit(self):
|
||||||
"""
|
"""
|
||||||
Get the mailbox details from the mailcow API.
|
Get the sync job details from the mailcow API.
|
||||||
:return: Response from the mailcow API.
|
:return: Response from the mailcow API.
|
||||||
"""
|
"""
|
||||||
return self.mailcow.editSyncjob(self.id, self.getEdit())
|
return self.mailcow.editSyncjob(self.id, self.getEdit())
|
||||||
|
|||||||
Reference in New Issue
Block a user